Fixed a bug where images were redownloaded multiple times

Solves a problem where images were downloaded regardless if they were found in the downloadfolder.