painter, rendererContextWrapper, resolution, !colorImages, false);
// draw image
AffineTransform at = paintingState.getData().getTransform();
at.translate(x, y);
g2d.drawImage(bufferedImage, at, null);
} else {
AFPGraphicsObjectInfo graphicsObjectInfo = new AFPGraphicsObjectInfo();
graphicsObjectInfo.setPainter(painter);
graphicsObjectInfo.setGraphics2D(g2d);