Added fallback iOS 5-compatile image creation.