          """ Draw the latest Extract Boxes around the faces. """
          color = self._control_color
          roi = self._zoomed_roi
          for idx, face in enumerate(self._face_iterator):
              logger.trace("Drawing Extract Box: (idx: %s, roi: %s)", idx, face.original_roi)
              if self._globals.is_zoomed:
                  box = np.array((roi[0], roi[1], roi[2], roi[1], roi[2], roi[3], roi[0], roi[3]))
              else:
                  face.load_aligned(None, force=True)
                  box = self._scale_to_display(face.original_roi).flatten()
 
</s> remove                 face.load_aligned(None, force=True)
                box = self._scale_to_display(face.original_roi).flatten()
 </s> add                 aligned = AlignedFace(face.landmarks_xy, centering="face")
                box = self._scale_to_display(aligned.original_roi).flatten() </s> remove         self.final_alignments.data.setdefault(frame,
                                              dict()).setdefault("faces", []).append(alignment)
 </s> add         self._final_alignments.data.setdefault(frame,
                                               dict()).setdefault("faces", []).append(alignment) </s> remove             aligned_landmarks = face.aligned_landmarks
            for (pos_x, pos_y) in aligned_landmarks:
                cv2.circle(face.aligned_face, (pos_x, pos_y), 2, (0, 0, 255), -1)
 </s> add             # 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)
            cv2.line(face.aligned.face, center, tuple(points[0]), (255, 0, 0), 1)
            cv2.line(face.aligned.face, center, tuple(points[2]), (0, 0, 255), 1)
            # Face centering
            roi = face.aligned.get_cropped_roi("face")
            cv2.rectangle(face.aligned.face, tuple(roi[:2]), tuple(roi[2:]), (0, 255, 0), 1) </s> remove             roi = face.original_roi.squeeze()
 </s> add             roi = face.aligned.original_roi.squeeze()
            logger.trace("Drawing Extract Box: (idx: %s)", idx)
          """ Draw the latest Extract Boxes around the faces. """
          color = self._control_color
          roi = self._zoomed_roi
          for idx, face in enumerate(self._face_iterator):
            logger.trace("Drawing Extract Box: (idx: %s)", idx)
              if self._globals.is_zoomed:
                  box = np.array((roi[0], roi[1], roi[2], roi[1], roi[2], roi[3], roi[0], roi[3]))
              else:
                  face.load_aligned(None, force=True)
                  box = self._scale_to_display(face.original_roi).flatten()
keep keep keep keep replace keep keep keep keep keep
 Extract - Increase area and move centering (#1095)

* Extract
  - Implement aligner re-feeding
  - Add extract type to pipeline.ExtractMedia
  - Add pose annotation to debug
* Convert
  - implement centering
  - remove usage of feed and reference face properties
  - Remove distributed option from convert
  - Force update of alignments file on legacy receive
* Train
  - Resize preview image to model output size
  - Force legacy centering if centering does not exist in model's state file
  - Enable training on legacy face sets

* Alignments Tool
  - Update draw to include head/pose
  - Remove DFL drop + linting
  - Remove remove-frames job
  - remove align-eyes option
  - Update legacy masks to new extract type
  - Exit if attempting to merge version 1.0 alignments files with version 2.0 alignments files
  - Re-generate thumbnails on legacy upgrade
* Mask Tool
  - Update for new extract + bugfix full frame
* Manual Tool
  - Update to new extraction method
   - Disable legacy alignments,
   - extract box bugfix
   - extract faces - size to 512 and center on head
* Preview Tool
  - Display based on model centering
* Sort Tool
  - Use alignments for sort by face

* lib.aligner
  - Add Pose Class
  - Add AlignedFace Class
  - center _MEAN_FACE on x
  - Add meta information with versioning to alignments file
  - lib.aligner.get_align_matrix to use landmarks not face
  - Refactor aligned faces in lib.faces_detect
* lib.logger
  - larger file log padding
* lib.config
  - Fix global changeable_items
* lib.face_filter
  - Use new extracted face images
* lib.image
  - bump thumbnail default size to 96px 
tools/manual/frameviewer/editor/extract_box.py