public Image loadImage(InputStream inputStream) {
        if (sourceImage != null && !sourceImage.isDisposed()) {
            sourceImage.dispose();
            sourceImage = null;
            imageData = null;
        }
        this.error = null;
        if (inputStream != null) {
            try {
                imageData = new ImageData(inputStream);
                sourceImage = new Image(getDisplay(), imageData);
            } catch (SWTException e) {
                this.error = e;
            }
        }
        showOriginal();
        return sourceImage;
    }
Reload image from a file

@return swt image created from image file
plugins/org.jkiss.dbeaver.ui.editors.image/src/org/jkiss/dbeaver/ui/controls/imageview/ImageViewCanvas.java