private synchronized void setPermanentConsumer(ImageConsumer consumer) {
      if (myPermanentConsumer != null) removeConsumer(myPermanentConsumer);
      myPermanentConsumer = consumer;
    }
private synchronized void setPermanentConsumer(ImageConsumer consumer)