optimized cv::copyMakeBorder