private VolatileImage createVolatileImage(Graphics2D g, int width, int height) {
    VolatileImage image = g.getDeviceConfiguration().createCompatibleVolatileImage(width, height, Transparency.TRANSLUCENT);
    drawVolatileImage(image);
    return image;
  }
private VolatileImage createVolatileImage(Graphics2D g, int width, int height)