title: Camera Overlay with User-Photo not saving as edited
body: <p>I am using a transparent image with a <strong>cut out</strong> for a user to insert / take their own image. For some reason, while using the <code>UIImagePickerControllerEditedImage</code> and cropping the user-taken photo, the image does not save as it was edited; see photo for example.</p>
  
  <p>My issue is that the image does not save exactly how the photo was edited. (i.e: cropped / resized).</p>
  
  <h2>Setting up the UIImagePicker</h2>
  
  <pre><code>-(void)choosePhotoDialog:(id)sender
  {        
      OverlayView * overlay = [[OverlayView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH_IPHONE, SCREEN_HEIGTH_IPHONE) andPhoto:[dict objectForKey:@"imageUrl"]];
      [overlay setUserInteractionEnabled: NO];
  
      UIImagePickerController * picker = [[UIImagePickerController alloc] init];
      [picker setSourceType: UIImagePickerControllerSourceTypeCamera];
      [picker setDelegate: self];
      [picker setAllowsImageEditing: YES];
      [picker setShowsCameraControls: YES];
      [picker setNavigationBarHidden: YES];
      [picker setWantsFullScreenLayout: YES];
      [picker setCameraOverlayView: overlay];
      [self presentModalViewController:picker animated:YES];  
      [picker release];
  }
  </code></pre>
  
  <h2>After the image is edited:</h2>
  
  <pre><code>- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
  {
      SDWebImageManager * manager = [SDWebImageManager sharedManager];
      UIImage * cachedImage  = [manager imageWithURL: [NSURL URLWithString: @"http://www.someurl.com/test.png"]];
      UIImage * userOriginal = [info valueForKey:UIImagePickerControllerEditedImage];
  
      /*  combining the overlay and the user-photo  */
      UIGraphicsBeginImageContext( CGSizeMake(640,960) );
  
          /*  for some reason I have to push the user-photo
              down 60 pixels for it to show correctly as it
              was edited.
           */
          [userOriginal drawAtPoint:CGPointMake(0,60)];
          [cachedImage drawAtPoint:CGPointMake(0,0)];
  
          UIImage * draft = UIGraphicsGetImageFromCurrentImageContext();
  
      UIGraphicsEndImageContext();
  
      UIImageWriteToSavedPhotosAlbum( draft, self, @selector(image:didFinishSavingWithError:contextInfo:), nil );       
  }
  </code></pre>
  
  <p>As well, there are <strong>white</strong> spaces from the editing "crop" portion as demonstrated in the following:</p>
  
  <p><img src="https://i.stack.imgur.com/lORg8.png" alt="enter image description here"></p>