/** {@inheritDoc} */
public void handleImage(RenderingContext context, Image image, Rectangle pos)
throws IOException {
SVGRenderingContext svgContext = (SVGRenderingContext)context;
ImageRawStream raw = (ImageRawStream)image;
InputStream in = raw.createInputStream();
try {
ContentHandler handler = svgContext.getContentHandler();
String url = DataURLUtil.createDataURL(in, raw.getMimeType());
AttributesImpl atts = new AttributesImpl();
addAttribute(atts, IFConstants.XLINK_HREF, url);
atts.addAttribute("", "x", "x", CDATA, Integer.toString(pos.x));
atts.addAttribute("", "y", "y", CDATA, Integer.toString(pos.y));
atts.addAttribute("", "width", "width", CDATA, Integer.toString(pos.width));