Fix selfie photos from being upside down