          return len(self.source)
  
      def update_tk_image(self):
          """ Build the full preview images and compile :attr:`tk_image` for display. """
          logger.trace("Updating tk image")
          self._build_faces_image()
          img = np.vstack((self._faces_source, self._faces_dest))
 
</s> remove         """ Return compiled images images in TK PIL format resized for frame """
 </s> add         """ Build the full preview images and compile :attr:`tk_image` for display. """ </s> remove         self.build_faces_image()
        img = np.vstack((self.faces_source, self.faces_dest))
        size = self.get_scale_size(img)
 </s> add         self._build_faces_image()
        img = np.vstack((self._faces_source, self._faces_dest))
        size = self._get_scale_size(img) </s> remove     def total_columns(self):
 </s> add     def tk_image(self):
        """ :class:`PIL.ImageTk.PhotoImage`: The compiled preview display in tkinter display
        format """
        return self._tk_image

    @property
    def _total_columns(self): </s> remove         self.tk_image = ImageTk.PhotoImage(img)
        self.tk_vars["refresh"].set(False)
 </s> add         self._tk_image = ImageTk.PhotoImage(img)
        self._tk_vars["refresh"].set(False) </s> remove     def build_ui(self):
        """ Build the UI elements for displaying preview and options """
        container = tk.PanedWindow(self.root,
 </s> add     def _build_ui(self):
        """ Build the elements for displaying preview images and options panels. """
        container = tk.PanedWindow(self,
    def set_display_dimensions(self, dimensions):
        """ Adjust the size of the frame that will hold the preview samples.

        Parameters
        ----------
        dimensions: tuple
            The (`width`, `height`) of the frame that holds the preview
        """
        self._display_dims = dimensions

          return len(self.source)
  
    def set_display_dimensions(self, dimensions):
        """ Adjust the size of the frame that will hold the preview samples.

        Parameters
        ----------
        dimensions: tuple
            The (`width`, `height`) of the frame that holds the preview
        """
        self._display_dims = dimensions

      def update_tk_image(self):
          """ Build the full preview images and compile :attr:`tk_image` for display. """
          logger.trace("Updating tk image")
          self._build_faces_image()
          img = np.vstack((self._faces_source, self._faces_dest))
keep add 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