cropping with paths and grayscale conversion for UIImage

    NSString *imageName = @"IMG_2345.jpg";
    UIImage *image= [UIImage imageNamed:imageName];
    CGFloat hfactor = image.size.height / image.size.width;
    image= [image resizedImage:CGSizeMake(320, 320 * hfactor) interpolationQuality:kCGInterpolationHigh];

    image = [image imageCroppedWithPath:[UIBezierPath bezierPathWithOvalInRect:CGRectMake(0,0, min, min)]
                                                    invertPath: NO];
    


![positive](https://f.cloud.github.com/assets/74471/1817371/29003f34-6f96-11e3-81cc-8e1a578ceeca.png)
------------------


    NSString *imageName = @"IMG_2345.jpg";
    UIImage *image=[ [UIImage imageNamed:imageName] grayscaledImage];
    CGFloat hfactor = image.size.height / image.size.width;
    image= [image resizedImage:CGSizeMake(320, 320 * hfactor) interpolationQuality:kCGInterpolationHigh];

    image = [image imageCroppedWithPath:[UIBezierPath bezierPathWithOvalInRect:CGRectMake(0,0, min, min)]
                                                    invertPath: YES];
    



![negative grayscale](https://f.cloud.github.com/assets/74471/1817373/4bb494e4-6f96-11e3-89ae-5e4e8846424a.png)