static private void verifyXAndY() {
        if (x < 0 ) {
            x = 0;
        } else if ((x + cropWidth) > imageWidth) {
            x = imageWidth - cropWidth;
        }
        if (y < 0 ) {
            y = 0;
        } else if ((y + cropHeight) > imageHeight) {
            y = imageHeight - cropHeight;
        }
    }