title: Resize UIImage from UIImagePickerController
body: <p>I am currently taking a photo using this code here</p>
  
  <pre><code>- (void) cameraButtonSelected
  {
      UIImagePickerController *picker = [[UIImagePickerController alloc] init];
      picker.delegate = self;
      picker.allowsEditing = YES;
      picker.sourceType = UIImagePickerControllerSourceTypeCamera;
  
      [self presentViewController:picker animated:YES completion:NULL];
  }
  </code></pre>
  
  <p>I am allowing the user to edit the the photo but when I use this delegate method for some reason the UIImagePickerController will not remove from view after the user has pressed "Use Photo"</p>
  
  <pre><code>- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
  </code></pre>
  
  <p>I would like to know </p>
  
  <ol>
  <li>How do I remove UIImagePickerController from view after "Use Photo" button pressed</li>
  <li>How can I resize the photo I have just taken as I need a smaller variant to send to my server</li>
  </ol>