title: UIImage from UIImagePickerController orientation issue
body: <p>I'm using <code>UIImagePickerController</code> to fetch images from the user's photo library and/or taken with the camera.  Works great.</p>
  
  <p>I'm noticing that fetched images are often (always?) coming back with their <code>imageOrientation</code> set to <code>UIImageOrientationRight</code>.  But the image was captured with the device in portrait orientation.  <strong>Why is this?</strong>  This is an iPhone4S, iOS6, using the rear camera - so the resolution is 8MP.</p>
  
  <p>In the simulator, grabbing photos from the photo library, images come back <code>UIImageOrientationUp</code>.</p>
  
  <p>When I display the image in a <code>UIImageView</code> the orientation looks correct (portrait/up).  But when I go to crop the image the coordinate system isn't what I would expect.  0,0 is in the upper-right of the image, which I guess makes sense when it reports <code>UIImageOrientationRight</code>.</p>
  
  <p>I'm looking for an explanation of what's going on and the correct approach to dealing with the odd coordinate system.</p>
  
  <p><strong>EDIT</strong>:  it sure appears to me that, on iPhone4S at least, the camera always takes UIImageOrientationRight/"landscape" images, and that UIImageView is respecting the imageOrientation on display.  However, if I save the image using UIImagePNGRepresentation the orientation is not preserved (I think I read about this somewhere.)</p>