g2d.setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON );
// Draw graphics
try {
SVGUniverse universe = SVGCache.getSVGUniverse();
SVGDiagram diagram = universe.getDiagram( universe.loadSVG( is, name ));
if ( diagram != null ) {
SVGRoot root = diagram.getRoot();
root.setAttribute( "width", AnimationElement.AT_XML, Double.toString( width ));
root.setAttribute( "height", AnimationElement.AT_XML, Double.toString( height ));
root.build();