def set_image(self, image=None, wcs=None, **kwargs):
        if self._im is not None:
            self._im.remove()
            self._im = None

        kwargs.setdefault('origin', 'upper')

        if wcs is not None:
            self._axes.reset_wcs(wcs)
        self._im = imshow(self._axes, image, norm=self._norm, cmap='gray', **kwargs)
        self._im_array = image
        self._wcs = wcs
        self._redraw()
Update the image shown in the widget
dataset/ETHPy150Open glue-viz/glue/glue/viewers/image/qt/viewer_widget.py/StandaloneImageWidget.set_image