title: Draw a border and shadow onto a UIImage
body: <p>I have been able to redraw a UIImage with a border successfully, but not with a border + shadow. The code below successfully draws the image with a white border, but I cannot figure out how to include a drop shadow under the border. Help is greatly appreciated!</p>
  <pre><code>- (UIImage *)generatePhotoFrameWithImage:(UIImage *)image {
      CGSize newSize = CGSizeMake(image.size.width + 50, image.size.height + 60);
      UIGraphicsBeginImageContext(newSize);
      CGRect rect = CGRectMake(25, 35, image.size.width, image.size.height);
      [image drawInRect:rect blendMode:kCGBlendModeNormal alpha:1.0];
      
      CGContextRef context = UIGraphicsGetCurrentContext();
      CGContextSetRGBStrokeColor(context, 1.0, 1.0, 1.0, 1.0);
      CGContextStrokeRectWithWidth(context, CGRectMake(25, 35, image.size.width, image.size.height), 50);
      
      //CGContextSetShadowWithColor(context, CGSizeMake(0, -60), 5, [UIColor blackColor].CGColor);
      
      UIImage *result =  UIGraphicsGetImageFromCurrentImageContext();
      UIGraphicsEndImageContext();
  
      return result;
  }
  </code></pre>
  <p>PS:  I am not using a UIImageView because I need to preserve the full image quality.</p>