in reply to Reading img file through URL
You can grab the image using LWP::UserAgent. You can write the file using open and print after setting binmode on the file handle.