code: @Override
  	public BufferedImage createCompatibleDestImage(BufferedImage src, ColorModel destCM) {
  		final ColorModel cm;
  		if (destCM == null) {
  			cm = src.getColorModel();
  		} else {
  			cm = destCM;
  		}
  
  		return new BufferedImage(cm,
  				cm.createCompatibleWritableRaster(src.getWidth(), src.getHeight()),
  				cm.isAlphaPremultiplied(), null);
  	}
docs: {@inheritDoc}