                      self.errcount += 1
                  else:
                      logger.error("Error reading the preview file for '%s'", img)
                      print("Error reading the preview file for {}".format(name))
                      self.previewtrain[name] = None
  
      def get_current_size(self, name):
          """ Return the size of the currently displayed image """
          logger.debug("Getting size: '%s'", name)
          if not self.previewtrain.get(name, None):
              return None
          img = self.previewtrain[name][1]
          if not img:
 
</s> remove         if not self.previewtrain.get(name, None):
 </s> add         if not self._previewtrain.get(name, None): </s> remove         img = self.previewtrain[name][1]
 </s> add         img = self._previewtrain[name][1] </s> remove                                img, self.errcount)
                if self.errcount < 10:
                    self.errcount += 1
 </s> add                                img, self._errcount)
                if self._errcount < 10:
                    self._errcount += 1 </s> remove                 size = self.get_current_size(name)
                self.previewtrain[name] = [Image.open(img), None, modified]
 </s> add                 size = self._get_current_size(name)
                self._previewtrain[name] = [Image.open(img), None, modified] </s> remove                 self.errcount = 0
 </s> add                 self._errcount = 0
                    self._previewtrain[name] = None

    def _get_current_size(self, name):
        """ Return the size of the currently displayed training preview image.

        Parameters
        ----------
        name: str
            The name of the training image to get the size for

        Returns
        -------
        width: int
            The width of the training image
        height: int
            The height of the training image
        """
                      self.errcount += 1
                  else:
                      logger.error("Error reading the preview file for '%s'", img)
                      print("Error reading the preview file for {}".format(name))
                    self._previewtrain[name] = None

    def _get_current_size(self, name):
        """ Return the size of the currently displayed training preview image.

        Parameters
        ----------
        name: str
            The name of the training image to get the size for

        Returns
        -------
        width: int
            The width of the training image
        height: int
            The height of the training image
        """
                    self._previewtrain[name] = None

    def _get_current_size(self, name):
        """ Return the size of the currently displayed training preview image.

        Parameters
        ----------
        name: str
            The name of the training image to get the size for

        Returns
        -------
        width: int
            The width of the training image
        height: int
            The height of the training image
        """
                    self._previewtrain[name] = None

    def _get_current_size(self, name):
        """ Return the size of the currently displayed training preview image.

        Parameters
        ----------
        name: str
            The name of the training image to get the size for

        Returns
        -------
        width: int
            The width of the training image
        height: int
            The height of the training image
        """
                    self._previewtrain[name] = None

    def _get_current_size(self, name):
        """ Return the size of the currently displayed training preview image.

        Parameters
        ----------
        name: str
            The name of the training image to get the size for

        Returns
        -------
        width: int
            The width of the training image
        height: int
            The height of the training image
        """
          logger.debug("Getting size: '%s'", name)
          if not self.previewtrain.get(name, None):
              return None
          img = self.previewtrain[name][1]
          if not img:
keep keep keep keep replace replace replace replace keep keep keep keep keep
 GUI Updates (#940)

* lib.gui: Update icons
* tools.cli: Add video filetype flag to mask input
* lib.gui.popup_configure: Refresh GUI on config save
* lib.gui._config: Add Icon size and load last session options
* lib.gui.control_helper - Add control modification tracking
* lib.gui - Add Projects and Last Session
- Main root title handled by projects
- Add Hotkeys
- Create projects module
- split fsw and fst filetypes
- Add last_session saving

* lib.project
- Documentation
- Ask confirm on closing unsaved project
-Fixups

* Track model folder changes
- Shuffle some globals
- Activate System Verbosity for GUI

* lib.gui.utils - Documentation and clean up
- lib.gui.custom_widgets - Create and document

* Add GUI config option to disable auto loading model stats 
lib/gui/utils.py