That was also my thought. Before saving every image, I would suggest to use the image size and contents to check if the image is already downloaded. If it already exist, skip it, if not save it with a random name.
>Why not just rename the image at every download?
>
>>The Image name is the same every time so this would not work. If I did attempt to store the image as you suggested, it would be with a different session (the server sets the session to expire after 0) so the image would be different.