          logger.debug("Initialized %s", self.__class__.__name__)
  
      def refresh_display_callback(self, *args):
          """ Add a trace to refresh display on callback """
          if not self.refresh_display_trigger.get():
              return
          logger.trace("Refresh display trigger received: %s", args)
          self.reload()
  
      def resize(self, event):
 
</s> remove     def refresh_display_callback(self, *args):
 </s> add     def _refresh_display_callback(self, *args): </s> remove         self.reload()
 </s> add         self._reload() </s> remove     def resize(self, event):
        """  Resize the image to fit the frame, maintaining aspect ratio """
 </s> add     def _resize(self, event):
        """ Resize the image to fit the frame, maintaining aspect ratio """ </s> remove         self.refresh_display_trigger = tk_vars["refresh"]
        self.refresh_display_trigger.trace("w", self.refresh_display_callback)
        self.display = parent.preview_display
        self.canvas = tk.Canvas(self, bd=0, highlightthickness=0)
        self.canvas.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
        self.displaycanvas = self.canvas.create_image(0, 0,
                                                      image=self.display.tk_image,
                                                      anchor=tk.NW)
        self.bind("<Configure>", self.resize)
 </s> add         self._refresh_display_trigger = tk_vars["refresh"]
        self._refresh_display_trigger.trace("w", self._refresh_display_callback)
        self._display = parent.preview_display
        self._canvas = tk.Canvas(self, bd=0, highlightthickness=0)
        self._canvas.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
        self._displaycanvas = self._canvas.create_image(0, 0,
                                                        image=self._display.tk_image,
                                                        anchor=tk.NW)
        self.bind("<Configure>", self._resize) </s> remove     def refresh(self, *args):
        """ Refresh the display """
 </s> add     def _refresh(self, *args):
        """ Load new faces to display in preview.

        Parameters
        ----------
        *args: tuple
            Unused, but required for tkinter callback.
        """
        if not self._refresh_display_trigger.get():
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def refresh_display_callback(self, *args):
          """ Add a trace to refresh display on callback """
        if not self._refresh_display_trigger.get():
              return
          logger.trace("Refresh display trigger received: %s", args)
          self.reload()
  
      def resize(self, event):
keep keep keep keep replace keep keep keep keep keep
 Smart Masks to Convert (#957)

- scripts.convert - Use Smart Masks for Convert
    * Make on-the-fly conversion an explicit option

- Move BlurMask to lib.faces_detect

- tools.preview - Fix for smart masks
    * Subclass from tk.Tk
    * Options to lib.gui.control_helper
    *variable cleanup

- lib.logger - Demote more tensorflow deprecation messages

- Documentation:
    * lib.faces_detect.BlurMask
    * plugins.convert.mask
    * lib.convert
    * scripts.convert
    * scripts.fsmedia
    * tools.preview 
tools/preview.py