protected void allocate() {
//    System.out.println("PGraphicsJava2D allocate() " + width + " " + height);
//    System.out.println("allocate " + Thread.currentThread().getName());
    image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
    g2 = (Graphics2D) image.getGraphics();
    // can't un-set this because this may be only a resize
    // http://dev.processing.org/bugs/show_bug.cgi?id=463
    //defaultsInited = false;
    //checkSettings();
    //reapplySettings = true;
  }