* Possibly need a slightly different design for the image stuff.
*/
protected boolean loadImage(String uri) {
// parse document and get the size attributes of the svg element
try {
SAXSVGDocumentFactory factory =
new SAXSVGDocumentFactory(SVGImage.getParserName());
SVGDocument doc = factory.createDocument(uri, imageStream);
// should check the stream contains text data
SVGSVGElement svg = doc.getRootElement();
this.width = (int)svg.getWidth().getBaseVal().getValue();
this.height = (int)svg.getHeight().getBaseVal().getValue();
return true;