public Graphics2D clearOffscreenAndReturn() {
        Dimension d = getSize();
        Graphics offG = getOffScreenGraphics();
        offG.setColor(getBackground());
        offG.fillRect(0, 0, d.width, d.height);

        return (Graphics2D)offG;
    }