-(UIImage *)imageAfterEffect:(UIImage *)imageBeforeEffect
{
UIGraphicsBeginImageContext(imageBeforeEffect.size);
CGContextRef context = UIGraphicsGetCurrentContext();
UIColor *color = [UIColor clearColor];
[color setFill];
CGContextTranslateCTM(context, 1, imageBeforeEffect.size.height);
CGContextScaleCTM(context, 1.0, -1.0);
CGContextSetBlendMode(context, kCGBlendModeDarken);
CGRect rect = CGRectMake(0.0, 0.0, imageBeforeEffect.size.width, imageBeforeEffect.size.height);
CGContextDrawImage(context, rect, imageBeforeEffect.CGImage);