setOffScreenBuffer(null);
    BufferedImage doRender(int width, int height) {	BufferedImage bImage =	    new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);	ImageComponent2D buffer =	    new ImageComponent2D(ImageComponent.FORMAT_RGBA, bImage);	setOffScreenBuffer(buffer);	renderOffScreenBuffer();	waitForOffScreenRendering();	bImage = getOffScreenBuffer().getImage();	return bImage;    }