slight change to photo flipping