added code to line 36 so that the downloaded images will have the proper...

... extension.

Your program was downloading the images without giving them a proper file extension, i made the program add .jpg to the end of the downloaded files.