Improved the way that in-place operations work. This was necessary because cv::Mat::copyTo would not reduce the memory size of the image that was being cropped if it was coppied to itself.