  
          crop_size = get_centered_size(self.stored_centering, centering, self.stored_size)
          roi = np.array([center - crop_size // 2, center + crop_size // 2]).ravel()
  
          self._sub_crop["size"] = crop_size
          self._sub_crop["slice_in"] = [slice(max(roi[1], 0), max(roi[3], 0)),
                                        slice(max(roi[0], 0), max(roi[2], 0))]
          self._sub_crop["slice_out"] = [
              slice(max(roi[1] * -1, 0),
                    crop_size - min(crop_size, max(0, roi[3] - self.stored_size))),
              slice(max(roi[0] * -1, 0),
                    crop_size - min(crop_size, max(0, roi[2] - self.stored_size)))]
  
 
</s> remove         src_size = self.stored_size - (self.stored_size * _EXTRACT_RATIOS[self.stored_centering])
        offset *= ((self.stored_size - (src_size / 2)) / 2)
        center = np.rint(offset + self.stored_size / 2).astype("int32")

        crop_size = get_centered_size(self.stored_centering, centering, self.stored_size)
 </s> add         center = get_adjusted_center(self.stored_size,
                                     source_offset,
                                     target_offset,
                                     self.stored_centering)
        crop_size = get_centered_size(self.stored_centering,
                                      centering,
                                      self.stored_size,
                                      coverage_ratio=coverage_ratio) </s> remove         logger.trace("src_size: %s, roi: %s, sub_crop: %s", src_size, roi, self._sub_crop)
 </s> add         logger.trace("src_size: %s, coverage_ratio: %s, sub_crop_size: %s, ",  # type: ignore
                     "sub_crop_slices: %s", roi, coverage_ratio, self._sub_crop_size,
                     self._sub_crop_slices) </s> remove         if centering == self.stored_centering:
 </s> add         if centering == self.stored_centering and coverage_ratio == 1.0: </s> remove             mask.set_sub_crop(aln_face.pose.offset[mask.stored_centering] * -1, centering="legacy")
 </s> add             mask.set_sub_crop(aln_face.pose.offset[mask.stored_centering],
                              aln_face.pose.offset["legacy"],
                              centering="legacy") </s> remove             mask.set_sub_crop(aln_face.pose.offset[mask.stored_centering] * -1, centering="legacy")
 </s> add             mask.set_sub_crop(aln_face.pose.offset[mask.stored_centering],
                              aln_face.pose.offset["legacy"],
                              centering="legacy")
        self._sub_crop_size = crop_size
        self._sub_crop_slices["in"] = [slice(max(roi[1], 0), max(roi[3], 0)),
                                       slice(max(roi[0], 0), max(roi[2], 0))]
        self._sub_crop_slices["out"] = [
  
          crop_size = get_centered_size(self.stored_centering, centering, self.stored_size)
          roi = np.array([center - crop_size // 2, center + crop_size // 2]).ravel()
  
        self._sub_crop_size = crop_size
        self._sub_crop_slices["in"] = [slice(max(roi[1], 0), max(roi[3], 0)),
                                       slice(max(roi[0], 0), max(roi[2], 0))]
        self._sub_crop_slices["out"] = [
        self._sub_crop_size = crop_size
        self._sub_crop_slices["in"] = [slice(max(roi[1], 0), max(roi[3], 0)),
                                       slice(max(roi[0], 0), max(roi[2], 0))]
        self._sub_crop_slices["out"] = [
        self._sub_crop_size = crop_size
        self._sub_crop_slices["in"] = [slice(max(roi[1], 0), max(roi[3], 0)),
                                       slice(max(roi[0], 0), max(roi[2], 0))]
        self._sub_crop_slices["out"] = [
        self._sub_crop_size = crop_size
        self._sub_crop_slices["in"] = [slice(max(roi[1], 0), max(roi[3], 0)),
                                       slice(max(roi[0], 0), max(roi[2], 0))]
        self._sub_crop_slices["out"] = [
              slice(max(roi[1] * -1, 0),
                    crop_size - min(crop_size, max(0, roi[3] - self.stored_size))),
              slice(max(roi[0] * -1, 0),
                    crop_size - min(crop_size, max(0, roi[2] - self.stored_size)))]
  
keep keep keep keep replace replace replace replace keep keep keep keep keep
 lib.detected_face.Mask
  - Add source + target offset and coverage to set_sub_crop method 
lib/align/detected_face.py