protected Image createImage() {
		if (sourceImage != null) {
			return sourceImage;
		}

		// if sourceImage is null, then sourceIcon can't be null
		if (sourceIcon instanceof ImageIcon) {
			return ((ImageIcon) sourceIcon).getImage();
		}
		BufferedImage bufferedImage = new BufferedImage(sourceIcon.getIconWidth(),
			sourceIcon.getIconHeight(), BufferedImage.TYPE_INT_ARGB);
		Graphics graphics = bufferedImage.getGraphics();
		sourceIcon.paintIcon(null, graphics, 0, 0);
		graphics.dispose();
		return bufferedImage;
	}
Constructor for deriving from an image
@param name the name of the image
@param image the source image
Ghidra/Framework/Gui/src/main/java/resources/icons/DerivedImageIcon.java