createITextObject(context);
if (imageData != null) {
ResponseWriter response = context.getResponseWriter();
response.startElement("img", null);
GraphicImageStore store = GraphicImageStore.instance();
String key = store.put(new ImageWrapper(imageData, Type.IMAGE_JPEG));
String url = context.getExternalContext().getRequestContextPath()
+ GraphicImageResource.GRAPHIC_IMAGE_RESOURCE_PATH + "/"
+ key + Type.IMAGE_JPEG.getExtension();
response.writeAttribute("src", url, null);