// TODO fix. should only take screenshot once per the same page if there are multiple image comparison checks
int tolerance = spec.getTolerance() != null ? Math.abs(spec.getTolerance()) : 25;
ComparisonOptions options = new ComparisonOptions();
options.setStretchToFit(spec.isStretch());
options.setOriginalFilters(spec.getOriginalFilters());
options.setSampleFilters(spec.getSampleFilters());
options.setMapFilters(spec.getMapFilters());
options.setTolerance(tolerance);
Rect elementArea = pageElement.getArea();
ImageCheck minCheck = new ImageCheck(spec.getImagePaths().get(0), elementArea.getHeight() * elementArea.getWidth() * 2, null, null);