fix output matrix allocation in cv::subtract