          super().add_options()
  
      def _add_option_refresh(self) -> None:
          """ Add refresh button to refresh preview immediately """
          logger.debug("Adding refresh option")
          btnrefresh = ttk.Button(self.optsframe,
 
</s> remove         button = tk.Button(self,
 </s> add         button = tk.Button(self._frame, </s> remove         lblpreview = ttk.Label(preview, image=get_images().previewoutput[1])
 </s> add         lblpreview = ttk.Label(preview, image=self._preview.image)
    def subnotebook_hide(self) -> None:
        """ Override default subnotebook hide action to also remove the embedded option bar
        control and reset the training image buffer """
        if self.subnotebook and self.subnotebook.winfo_ismapped():
            logger.debug("Removing preview controls from options bar")
            if self._display is not None:
                self._display.remove_option_controls()
            super().subnotebook_hide()
            del self._display
            self._display = None
            self._preview.reset()

          super().add_options()
  
    def subnotebook_hide(self) -> None:
        """ Override default subnotebook hide action to also remove the embedded option bar
        control and reset the training image buffer """
        if self.subnotebook and self.subnotebook.winfo_ismapped():
            logger.debug("Removing preview controls from options bar")
            if self._display is not None:
                self._display.remove_option_controls()
            super().subnotebook_hide()
            del self._display
            self._display = None
            self._preview.reset()

      def _add_option_refresh(self) -> None:
          """ Add refresh button to refresh preview immediately """
          logger.debug("Adding refresh option")
          btnrefresh = ttk.Button(self.optsframe,
keep add keep keep keep keep
 GUI - Preview updates
  - Training preview. Embed preview pop-out window
  - Bugfix - convert/extract previews 
lib/gui/display_command.py