public ImageProgressBar createImageProgressBar(
     Composite parent, int flags, int x, int y, int width, int height, String imageFileName) {
   ImageProgressBar slider = new ImageProgressBar(parent, flags);
   slider.setBounds(getScaledBounds(x, y, width, height));
   slider.setImage(getSizedImageForWidget(imageFileName, slider));
   return slider;
 }
 public void disposeImageProgressBarImage(ImageProgressBar imageProgressBar) {
   disposeRegion(imageProgressBar);
   Image image = imageProgressBar.getImage();
   if (image != null) {
     imageProgressBar.setImage(null);
     image.dispose();
   }
 }