public void paint(Graphics gr) {
        clearOffscreenAndReturn();

        Graphics2D g = clearOffscreenAndReturn();
        g.setTransform(zapl.getCoordTransform());

        for (int i = 0; i < actions.size(); i++) {
            try {
                actions.elementAt(i).paintComponent(g);
                //System.out.println(String.format("Calling action paint x:%d, y:%d", actions.elementAt(i).centerX, actions.elementAt(i).centerY));
            }
            catch (ArrayIndexOutOfBoundsException ex) {
            }
        }

        gr.drawImage(offScreen, 0, 0, null);
    }