public static Image placeImagesSideBySide(Image left, Image right) {
		int leftHeight = left.getHeight(null);
		int leftWidth = left.getWidth(null);
		int rightHeight = right.getHeight(null);
		int rightWidth = right.getWidth(null);
		int width = leftWidth + rightWidth;
		int height = Math.max(leftHeight, rightHeight);

		BufferedImage newImage = createEmptyImage(width, height);
		Graphics g = newImage.getGraphics();
		int y = 0;
		if (leftHeight < rightHeight) {
			y = (rightHeight - leftHeight) / 2; // center smaller image
		}

		g.drawImage(left, 0, y, null);

		y = 0;
		if (leftHeight > rightHeight) {
			y = (leftHeight - rightHeight) / 2;
		}

		g.drawImage(right, leftWidth, y, null);
		g.dispose();

		waitForImage(null, newImage);
		return newImage;
	}
Places the two given images side-by-side into a new image.

@param left the left image
@param right the right image
@return a new image with the two given images side-by-side into a new image.
Ghidra/Framework/Gui/src/main/java/generic/util/image/ImageUtils.java