Fixes CGBitmapContextCreate unsupported parameter error visible in iOS7.