fixed one of my resize methods to account for input images with parameters not supported by CGBitmapContextCreate