change the logic of moving photos.