Moves images to the correct folder.