public synchronized void init()
{
if (( width > 0 ) && ( raster == null )) {
// Creates the SVG raster
TinyPixbuf buffer = new TinyPixbuf(width, height);
raster = new SVGRaster(buffer);
imageProducer = new XSVGImageProducer(raster);
raster.setSVGImageProducer(imageProducer);
// Sets the SVG raster size and the color model
imageProducer.setColorModel(ColorModel.getRGBdefault());