parameters.put(ClassicEngineFactoryParameters.PATTERN, pattern);
parameters.put(ClassicEngineFactoryParameters.EMBED, "true");
// Add the image as the value attribute
final ResourceManager resourceManager = report.getResourceManager();
final ResourceKey imageResourceKey = resourceManager.createKey(image, parameters);
element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, imageResourceKey);
// Add the element to the report
report.getPageHeader().addElement(element);