sh = new ScriptHandler(this);
backBuffer = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_RGB);
image = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_RGB);
paintEvent = new PaintEvent();
textPaintEvent = new TextPaintEvent();
eventManager = new EventManager();
listeners = new TreeMap<String, EventListener>();
}