          """ 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):
          """  Resize the image to fit the frame, maintaining aspect ratio """
          logger.trace("Resizing preview image")
          framesize = (event.width, event.height)
 
</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.display.display_dims = framesize
        self.reload()
 </s> add         self._display.set_display_dimensions(framesize)
        self._reload() </s> remove         if not self.refresh_display_trigger.get():
 </s> add         if not self._refresh_display_trigger.get(): </s> remove     def refresh_display_callback(self, *args):
 </s> add     def _refresh_display_callback(self, *args): </s> remove     def reload(self):
 </s> add     def _reload(self):
        self._reload()
          """ 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):
          """  Resize the image to fit the frame, maintaining aspect ratio """
          logger.trace("Resizing preview image")
          framesize = (event.width, event.height)
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