title: How to save cropped image with UIBezierPath
body: <p>I have an app that show an image and the user can "cut" some part of the image.</p>
  
  <p>My problem is that I can´t save the part cutted.</p>
  
  <p>References:</p>
  
  <p><a href="https://stackoverflow.com/questions/13063441/how-to-save-the-uiimage-after-multi-point-cropping-the-image">How to save the UIImage after multi point cropping the image?</a></p>
  
  <p>This is the method to crop the image:</p>
  
  <pre><code>    - (void) setClippingPath:(UIBezierPath *)clippingPath imagen:(UIImageView *)imagenView;
  {
      if (![[imagenView layer] mask])
          [[imagenView layer] setMask:[CAShapeLayer layer]];
  
  
      [(CAShapeLayer*) [[imagenView layer] mask] setPath:[clippingPath CGPath]];
  }
  </code></pre>
  
  <p>Can I save the new image?</p>
  
  <p>Thanks</p>