Fix photo rotation