Do you need to open it in Mozilla? You could just wget it. Or maybe you could do something like this:
Code:
/usr/bin/mozilla/mozilla http://xxxx.gif
/usr/bin/wget http://xxxx.gif
killall mozilla
The killall wouldn't be your best option, but I forget how to grab the process ID and just kill that.