              self._update_image(center_image=not self._initialized)
  
          self._root.after(1000, self._display_preview)
  
          if not self._initialized:
              self._initialize_window()
              self._root.mainloop()
  
  
  def main():
 
</s> remove         if not self.update_preview.get():
 </s> add         if not self._preview.load(): </s> remove         size = 256 if self.command == "convert" else 128
        get_images().load_latest_preview(thumbnail_size=int(size * get_config().scaling_factor),
                                         frame_dims=(self.winfo_width(), self.winfo_height()))
        self.display_item = get_images().previewoutput
 </s> add         size = int(256 if self.command == "convert" else 128 * get_config().scaling_factor)
        if not self._preview.load_latest_preview(thumbnail_size=size,
                                                 frame_dims=(self.winfo_width(),
                                                             self.winfo_height())):
            logger.trace("Preview not updated")  # type:ignore
            return
        logger.debug("Preview loaded")
        self.display_item = True
        if not self._initialized and self._is_standalone:
              self._update_image(center_image=not self._initialized)
  
          self._root.after(1000, self._display_preview)
  
        if not self._initialized and self._is_standalone:
              self._initialize_window()
              self._root.mainloop()
  
  
  def main():
keep keep keep keep 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