Fixed an issue causing the image orientation to be incorrect when stored from the camera.