Fix crash if patches are moved outside the image.
Fix crash if patches are moved outside the image.

daviddoria/InteractivePatchComparison,daviddoria/InteractivePatchComparison,daviddoria/InteractivePatchComparison