class CheckEqualSizePreprocessor implements Preprocessor {

    @Override
    public void process() {
        if (img1.getWidth() != img2.getWidth() || img1.getHeight() != img2.getHeight()) {
            throw new PreprocessingException("Image size does not match");
        }
        LOGGER.debug("Images have the same widht [{}] and height [{}]", img1.getWidth(), img1.getHeight());
    }

    public  CheckEqualSizePreprocessor(final BufferedImage img1, final BufferedImage img2);

}