Fixed two bugs and introduced new feature

Bugs fixed:
 1) Not every image is fetched. Solved by increasing the "size" sent to
img.php

 2) Downloaded image is the thumbnail. Solved by changing the way the
download URL is generated

Features introduced:
 *) Images won't be downloaded if already present in its directory