I think what your asking for is an image hosting site, maybe http://www.imgur.com ?
If this is not correct, please explain your question in more detail, a code sample of downloading an image does not offer much in site into a solution your looking for