title: When I save image to file the orientation that save is wrong
body: <p>When I save image to file it save with wrong orientation .</p>
  
  <pre><code>- (void)saveImage:(UIImage *)image:(NSString *)imageName
  {
     NSData *imageData = UIImagePNGRepresentation(image);         
     NSFileManager *fileManager = [NSFileManager defaultManager];   
     NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, 
         NSUserDomainMask, YES);
     NSString *documentsDirectory = [paths objectAtIndex:0];         
     NSString *fullPath = [documentsDirectory stringByAppendingPathComponent:
        [NSString stringWithFormat:@"%@.png", imageName]];
     [fileManager createFileAtPath:fullPath contents:imageData attributes:nil];
  }
  </code></pre>
  
  <p>Thanks.</p>