          """ Add refresh button to refresh preview immediately """
          logger.debug("Adding refresh option")
          btnrefresh = ttk.Button(self.optsframe,
                                  image=get_images().icons["reload"],
                                  command=preview_trigger().set)
          btnrefresh.pack(padx=2, side=tk.RIGHT)
          Tooltip(btnrefresh,
                  text=_("Preview updates at every model save. Click to refresh now."),
                  wrap_length=200)
          logger.debug("Added refresh option")
 
</s> remove     def add_option_refresh(self):
 </s> add     def _add_option_refresh(self): </s> remove         self.add_option_refresh()
 </s> add         self._add_option_refresh()
        self._add_option_mask_toggle() </s> remove     """ Trigger to indicate to underlying Faceswap process that the preview image should
 </s> add     """ Triggers to indicate to underlying Faceswap process that the preview image should </s> remove         self._display_mask = not self._display_mask
 </s> add         display_mask = not self._display_mask
        print("\n")  # Break to not garble loss output
        logger.info("Toggling mask display %s...", "on" if display_mask else "off")
        self._display_mask = display_mask
                                command=lambda x="update": preview_trigger().set(x))
          """ Add refresh button to refresh preview immediately """
          logger.debug("Adding refresh option")
          btnrefresh = ttk.Button(self.optsframe,
                                  image=get_images().icons["reload"],
                                command=lambda x="update": preview_trigger().set(x))
          btnrefresh.pack(padx=2, side=tk.RIGHT)
          Tooltip(btnrefresh,
                  text=_("Preview updates at every model save. Click to refresh now."),
                  wrap_length=200)
          logger.debug("Added refresh option")
keep keep keep keep replace keep keep keep keep keep
 Updates
  - Change shortcut key to M
  - Slight optimizations
  - GUI support for mask toggling 
lib/gui/display_command.py