private void crop(Shape shape, Rectangle bounds) {
		BufferedImage newImage = createEmptyImage(bounds.width, bounds.height);
		Graphics2D g2 = (Graphics2D) newImage.getGraphics();
		g2.setClip(shape);
		g2.translate(-bounds.x, -bounds.y);
		g2.drawImage(image, 0, 0, null);
		image = newImage;

	}
Crops a part of the current image, keeping what is inside the given bounds. This method
creates a shape such that the top and bottom of the cropped image have a jagged line, looking
somewhat like a sideways lightening bolt.

@param bounds the bounds to keep
@return the snippet
Ghidra/Features/Base/src/main/java/help/screenshot/AbstractScreenShotGenerator.java