          Parameters
          ----------
          name: str
              The name of the training image to be resized
          frame_dims: tuple
              The (width (`int`), height (`int`)) of the display panel that will display the preview
          """
          logger.debug("Resizing image: (name: '%s', frame_dims: %s", name, frame_dims)
          displayimg = cast(Image.Image, self._previewtrain[name][0])
          if frame_dims:
              frameratio = float(frame_dims[0]) / float(frame_dims[1])
 
</s> remove     def resize_image(self, name: str, frame_dims: Tuple[int, int]):
 </s> add     def resize_image(self, name: str, frame_dims: Optional[Tuple[int, int]]) -> None: </s> remove                 if not size:
                    return
 </s> add 
        frame_dims: tuple, optional
            The (width (`int`), height (`int`)) of the display panel that will display the preview.
            ``None`` if the frame dimensions are not known.
          Parameters
          ----------
          name: str
              The name of the training image to be resized
        frame_dims: tuple, optional
            The (width (`int`), height (`int`)) of the display panel that will display the preview.
            ``None`` if the frame dimensions are not known.
        frame_dims: tuple, optional
            The (width (`int`), height (`int`)) of the display panel that will display the preview.
            ``None`` if the frame dimensions are not known.
          """
          logger.debug("Resizing image: (name: '%s', frame_dims: %s", name, frame_dims)
          displayimg = cast(Image.Image, self._previewtrain[name][0])
          if frame_dims:
              frameratio = float(frame_dims[0]) / float(frame_dims[1])
keep keep keep keep replace replace keep keep keep keep keep
 Bugfix: Display preview image in gui 
lib/gui/utils.py