added conversions between UIImage and cv::Mat