@Override
    public final synchronized void paintComponent(Graphics g) {
        if (background != null) {
            background.render(g, 0, 0);
        }
        for (RenderItem item : renderlist) {
            item.render(g, 0, 0);
        }
        renderlist.clear();
    }