          self._needs_update: bool = False
          self._preview_buffer: Dict[str, np.ndarray] = {}
          self._images: Dict[str, Tuple[figure.Figure, Tuple[float, float]]] = {}
          self._resize_ids: List[Tuple[figure.Figure, int]] = []
          self._callbacks = dict(f="_toggle_size",
                                 m="_toggle_mask",
                                 r="_refresh",
                                 s="_save",
                                 enter="_quit")
          self._reassign_keys()
  
      @property
      def _toggle_size(self) -> bool:
          return self._full_size
 
</s> remove         self._toggle_mask: bool = False
        self._full_size: bool = False
        self._refresh: bool = False
        self._save: bool = False
        self._quit: bool = False
 </s> add         self._triggers: Dict[str, bool] = dict(toggle_mask=False,
                                               full_size=False,
                                               refresh=False,
                                               save=False,
                                               quit=False) </s> remove     @property
    def _toggle_size(self) -> bool:
        return self._full_size

    @_toggle_size.setter
    def _toggle_size(self, value: bool) -> None:  # pylint:disable=unused-argument
        """ Toggle between actual size and screen-fit size.

        Parameters
        ----------
        value: bool
            Unused, but required for setter. The size will check the previous state and switch it
            to the opposite state
        """
        self._full_size = not self._full_size
 </s> add     def _toggle_size(self) -> None:  # pylint:disable=unused-argument
        """ Toggle between actual size and screen-fit size. """
        self._triggers["full_size"] = not self._triggers["full_size"] </s> remove                 self._save = False
 </s> add                 self._triggers["save"] = False </s> remove                 self._toggle_mask = False
 </s> add                 self._triggers["toggle_mask"] = False </s> remove                 self._refresh = False
 </s> add                 self._triggers["refresh"] = False
        self._callbacks = dict(f="full_size",
                               m="toggle_mask",
                               r="refresh",
                               s="save",
                               enter="quit")
          self._needs_update: bool = False
          self._preview_buffer: Dict[str, np.ndarray] = {}
          self._images: Dict[str, Tuple[figure.Figure, Tuple[float, float]]] = {}
          self._resize_ids: List[Tuple[figure.Figure, int]] = []
        self._callbacks = dict(f="full_size",
                               m="toggle_mask",
                               r="refresh",
                               s="save",
                               enter="quit")
        self._callbacks = dict(f="full_size",
                               m="toggle_mask",
                               r="refresh",
                               s="save",
                               enter="quit")
        self._callbacks = dict(f="full_size",
                               m="toggle_mask",
                               r="refresh",
                               s="save",
                               enter="quit")
        self._callbacks = dict(f="full_size",
                               m="toggle_mask",
                               r="refresh",
                               s="save",
                               enter="quit")
        self._callbacks = dict(f="full_size",
                               m="toggle_mask",
                               r="refresh",
                               s="save",
                               enter="quit")
          self._reassign_keys()
  
      @property
      def _toggle_size(self) -> bool:
          return self._full_size
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 bugfix: Update preview screen in GUI 
scripts/train.py