Fixed CGBitmapContextCreate warnings for invalid alpha properties

This patch fixes all CGBitmapContextCreate errors when decoding images with invalid alpha properties.