private static ByteProvider createByteProvider(byte[] bytes) throws GhidraException {
		if (bytes == null) {
			throw new GhidraException("Attempted to process a null byte[].");
		}
		if (bytes.length == 0) {
			throw new GhidraException("Attempted to process an empty byte[].");
		}
		return new ByteArrayProvider("Bytes", bytes);
	}
Returns a list of byte[] containing image data.  The bytes will be either a png, a gif, or
a bitmap
Ghidra/Features/Base/src/main/java/ghidra/program/examiner/ProgramExaminer.java