saving images to correct folder