Moves images to the correct directory