Download an image file using wget

wget -O filename.png "http://some.url/folder/some_image.png"

And to upload the same file using Capistrano:

task :something do
  put File.read("filename.png"), "#{deploy_to}/remote_filename.png"
end