// Instantiate a jpeg image object!
Image image = Image.get(
getInputPath() + java.io.File.separator + "images" + java.io.File.separator + "gnu.jpg"
); // Abstract image (entity).
// Show the image!
composer.showXObject(
image.toXObject(document),
new Point2D.Double(
(float)pageSize.getWidth() / 2,
(float)pageSize.getHeight() / 2
),