Use the UIImage converted to CIImage with data as png, with this following code
CIImage *paper1 =[CIImage imageWithData:UIImagePNGRepresentation([UIImage imageNamed:@"yourPNGImage.png"])];
This Solves the problem, since earlier times the UIImage (though in .png format) was getting converted into a jpeg format CIImage.