ImageManager manager = getFopFactory().getImageManager();
ImageSessionContext sessionContext = getUserAgent().getImageSessionContext();
ImageHandlerRegistry imageHandlerRegistry = getFopFactory().getImageHandlerRegistry();
//Load and convert the image to a supported format
RenderingContext context = createRenderingContext();
Map hints = createDefaultImageProcessingHints(sessionContext);
context.putHints(hints);
ImageFlavor[] flavors = imageHandlerRegistry.getSupportedFlavors(context);
org.apache.xmlgraphics.image.loader.Image img = manager.getImage(
info, flavors,
hints, sessionContext);