Use Apple's UIImage+ImageEffects category instead of CIFilter.