      ----------
      save_variable: :class:`tkinter.BooleanVar`
          Variable that indicates a save preview has been requested
      """
      def __init__(self, save_variable: tk.BooleanVar) -> None:
          logger.debug("Initializing %s: (save_variable: %s)",
                       self.__class__.__name__, save_variable)
          self._source: Optional["np.ndarray"] = None
          self._display: Optional[ImageTk.PhotoImage] = None
          self._scale = 1.0
          self._interpolation = cv2.INTER_NEAREST
  
 
</s> remove         Variable that indicates a save preview has been requested
 </s> add         Variable that indicates a save preview has been requested in standalone mode
    is_standalone: bool
        ``True`` if the preview is running in standalone mode. ``False`` if it is running in the
        GUI </s> remove         self.update_preview = get_config().tk_vars.update_preview
 </s> add         logger.debug("Initializing %s (args: %s, kwargs: %s)",
                     self.__class__.__name__, args, kwargs)
        self._preview = get_images().preview_train
        self._display: Optional[PreviewTk] = None </s> remove     def __init__(self, parent: tk.Frame, is_standalone: bool) -> None:
        logger.debug("Initializing %s (parent: '%s', is_standalone: %s)",
                     self.__class__.__name__, parent, is_standalone)
        super().__init__(parent)
 </s> add     def __init__(self, parent: tk.Frame, taskbar: Optional[ttk.Frame]) -> None:
        logger.debug("Initializing %s (parent: '%s', taskbar: %s)",
                     self.__class__.__name__, parent, taskbar)
        self._is_standalone = taskbar is None
        self._gui_mapped: List[tk.Widget] = []
        self._frame = tk.Frame(parent) if taskbar is None else taskbar
 </s> remove         if self._scale != 1.0:
 </s> add         if self._scale not in (0.0, 1.0):  # Scale will be 0,0 on initial load in GUI
    def __init__(self, save_variable: tk.BooleanVar, is_standalone: bool) -> None:
        logger.debug("Initializing %s: (save_variable: %s, is_standalone: %s)",
                     self.__class__.__name__, save_variable, is_standalone)
        self._is_standalone = is_standalone
      ----------
      save_variable: :class:`tkinter.BooleanVar`
          Variable that indicates a save preview has been requested
      """
    def __init__(self, save_variable: tk.BooleanVar, is_standalone: bool) -> None:
        logger.debug("Initializing %s: (save_variable: %s, is_standalone: %s)",
                     self.__class__.__name__, save_variable, is_standalone)
        self._is_standalone = is_standalone
    def __init__(self, save_variable: tk.BooleanVar, is_standalone: bool) -> None:
        logger.debug("Initializing %s: (save_variable: %s, is_standalone: %s)",
                     self.__class__.__name__, save_variable, is_standalone)
        self._is_standalone = is_standalone
    def __init__(self, save_variable: tk.BooleanVar, is_standalone: bool) -> None:
        logger.debug("Initializing %s: (save_variable: %s, is_standalone: %s)",
                     self.__class__.__name__, save_variable, is_standalone)
        self._is_standalone = is_standalone
          self._source: Optional["np.ndarray"] = None
          self._display: Optional[ImageTk.PhotoImage] = None
          self._scale = 1.0
          self._interpolation = cv2.INTER_NEAREST
  
keep keep keep keep replace replace replace keep keep keep keep keep
 GUI - Preview updates
  - Training preview. Embed preview pop-out window
  - Bugfix - convert/extract previews 
lib/training/preview_tk.py