public void updateImage(ImageData data) {
        if (sourceImage != null)
            sourceImage.dispose();
        if (data != null)
            sourceImage = new Image(getDisplay(), data);
        syncScrollBars();
    }
Reset the image data and update the image

@param data image data to be set
plugins/org.jkiss.dbeaver.ui.editors.image/src/org/jkiss/dbeaver/ui/controls/imageview/ImageViewCanvas.java