rotate photos 90 degrees before saving