          framesize = (event.width, event.height)
          self.display.display_dims = framesize
          self.reload()
  
      def reload(self):
          """ Reload the preview image """
          logger.trace("Reloading preview image")
          self.display.update_tk_image()
          self.canvas.itemconfig(self.displaycanvas, image=self.display.tk_image)
  
 
</s> remove         self.display.display_dims = framesize
        self.reload()
 </s> add         self._display.set_display_dimensions(framesize)
        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.display.update_tk_image()
        self.canvas.itemconfig(self.displaycanvas, image=self.display.tk_image)
 </s> add         self._display.update_tk_image()
        self._canvas.itemconfig(self._displaycanvas, image=self._display.tk_image) </s> remove         self.reload()
 </s> add         self._reload()
    def _reload(self):
          framesize = (event.width, event.height)
          self.display.display_dims = framesize
          self.reload()
  
    def _reload(self):
          """ Reload the preview image """
          logger.trace("Reloading preview image")
          self.display.update_tk_image()
          self.canvas.itemconfig(self.displaycanvas, image=self.display.tk_image)
  
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