code: @Override
  	public String encode(Image image) {
  		if (image == null) {
  			return null;
  		}
  		ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
  		try {
  			ImageIO.write((BufferedImage) image, FORMAT, byteArrayOutputStream);
  			byte[] imageData = byteArrayOutputStream.toByteArray();
  			return Base64.encodeBase64String(imageData);
  		} catch (IOException e) {
  			throw new RuntimeException(e);
  		}
  	}
docs: {@inheritDoc}