Only add UIImage functions if UIKit is imported