public void disposeCompositeImage(Composite composite) {
   disposeRegion(composite);
   // background Images are special if there is no background on a given
   // composite
   // it appears that its parents background image will be given, that
   // image CANNOT
   // be disposed so we have to check for that case
   Image image = composite.getBackgroundImage();
   Image parentImage = composite.getParent().getBackgroundImage();
   if (image != null && parentImage != image) {
     composite.setBackgroundImage(null);
     image.dispose();
   }
 }