          frame = os.path.splitext(os.path.basename(extract_media.filename))[0]
          for idx, face in enumerate(extract_media.detected_faces):
              logger.trace("Drawing Landmarks. Frame: '%s'. Face: %s", frame, idx)
              # Landmarks
              for (pos_x, pos_y) in face.aligned.landmarks:
                  cv2.circle(face.aligned.face, (pos_x, pos_y), 1, (0, 255, 255), -1)
              # Pose
              center = tuple(np.int32((face.aligned.size / 2, face.aligned.size / 2)))
              points = (face.aligned.pose.xyz_2d * face.aligned.size).astype("int32")
              cv2.line(face.aligned.face, center, tuple(points[1]), (0, 255, 0), 1)
 
</s> remove                 if is_preview:
 </s> add                 if self._args.preview: </s> remove                     for filename in self._gui_triggers.values():
                        if os.path.isfile(filename):
                            logger.debug("Removing gui trigger file: %s", filename)
                            os.remove(filename)

 </s> add  </s> remove                 if is_preview and cv_key == ord("s"):
                    print("\n")
                    logger.info("Save requested")
                    self._save_now = True
                if is_preview and cv_key == ord("r"):
                    print("\n")
                    logger.info("Refresh preview requested")
                    self._refresh_preview = True
                if is_preview and cv_key == ord("m"):
                    print("\n")
                    logger.verbose("Toggle mask display requested")
                    self._toggle_preview_mask = True
 </s> add  </s> remove                 if self._args.redirect_gui:
                    if os.path.isfile(self._gui_triggers["mask_toggle"]):
                        self._toggle_preview_mask = True

                    if not preview_trigger_set and os.path.isfile(self._gui_triggers["update"]):
                        print("\n")
                        logger.info("Refresh preview requested")
                        self._refresh_preview = True
                        preview_trigger_set = True

                    if preview_trigger_set and not self._refresh_preview:
                        logger.debug("Resetting GUI preview trigger")
                        preview_trigger_set = False
 </s> add                 self._process_gui_triggers() </s> remove         is_preview = self._args.preview
        preview_trigger_set = False
 </s> add 
            for (pos_x, pos_y) in face.aligned.landmarks.astype("int32"):
          frame = os.path.splitext(os.path.basename(extract_media.filename))[0]
          for idx, face in enumerate(extract_media.detected_faces):
              logger.trace("Drawing Landmarks. Frame: '%s'. Face: %s", frame, idx)
              # Landmarks
            for (pos_x, pos_y) in face.aligned.landmarks.astype("int32"):
                  cv2.circle(face.aligned.face, (pos_x, pos_y), 1, (0, 255, 255), -1)
              # Pose
              center = tuple(np.int32((face.aligned.size / 2, face.aligned.size / 2)))
              points = (face.aligned.pose.xyz_2d * face.aligned.size).astype("int32")
              cv2.line(face.aligned.face, center, tuple(points[1]), (0, 255, 0), 1)
keep keep keep keep replace keep keep keep keep keep
 Bugfixes
  - extract - debug landmarks - fix non integer errror
  - training (gui) - fix mask toggling 
scripts/fsmedia.py