fixes for cv::addWeighted