code: public ImageHandlerBuilder crop(int x, int y, int width, int height) {
           height = Math.min(height, image.getHeight() - y); 
           width = Math.min(width, image.getWidth() - x);
  
           BufferedImage crop = Scalr.crop(image, x, y, width, height);
           image.flush();// cannot throw
           image = crop;
           return this;
       }
docs: Crop the image to the given width and height, using (x,y) as coordinates for upper left corner
  @param x
  @param y
  @param width
  @param height
  @return