Fixed an issue with UIImage