fixed a problem with images not downloading to the right folder