          height: int
              The height of the training image
          """
          logger.debug("Getting size: '%s'", name)
          if not self._previewtrain.get(name, None):
              return None
          img = self._previewtrain[name][1]
          if not img:
              return None
          logger.debug("Got size: (name: '%s', width: '%s', height: '%s')",
 
</s> remove         img = self._previewtrain[name][1]
 </s> add         img = cast(Image.Image, self._previewtrain[name][1]) </s> remove     def resize_image(self, name, frame_dims):
 </s> add     def resize_image(self, name: str, frame_dims: Tuple[int, int]): </s> remove     def set_geometry(self, width, height, fullscreen=False):
 </s> add     def set_geometry(self, width: int, height: int, fullscreen: bool = False) -> None: </s> remove             return None
 </s> add             return []
        if not self._previewtrain.get(name):
          height: int
              The height of the training image
          """
          logger.debug("Getting size: '%s'", name)
        if not self._previewtrain.get(name):
              return None
          img = self._previewtrain[name][1]
          if not img:
              return None
          logger.debug("Got size: (name: '%s', width: '%s', height: '%s')",
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py