a class for cropping OpenCV images