If the rect is not empty, the image will be cropped to this rect before processing.
Rectangle<int> cropRect;