              The (x, y) offset from the center point to return the mask for
  
          Notes
          -----
          All masks are currently stored with `face` centering and all crops are for 'legacy`
          centering. This may change in future
          """
          src_size = self.stored_size - (self.stored_size * _EXTRACT_RATIOS["face"])
          offset *= ((self.stored_size - (src_size / 2)) / 2)
          center = np.rint(offset + self.stored_size / 2).astype("int32")
  
 
</s> remove         src_size = self.stored_size - (self.stored_size * _EXTRACT_RATIOS["face"])
 </s> add         if centering == self.stored_centering:
            return

        src_size = self.stored_size - (self.stored_size * _EXTRACT_RATIOS[self.stored_centering]) </s> remove         crop_size = get_centered_size("face", "legacy", self.stored_size)
 </s> add         crop_size = get_centered_size(self.stored_centering, centering, self.stored_size)
        All crops are for 'legacy` centering. This may change in future
              The (x, y) offset from the center point to return the mask for
  
          Notes
          -----
        All crops are for 'legacy` centering. This may change in future
        All crops are for 'legacy` centering. This may change in future
          """
          src_size = self.stored_size - (self.stored_size * _EXTRACT_RATIOS["face"])
          offset *= ((self.stored_size - (src_size / 2)) / 2)
          center = np.rint(offset + self.stored_size / 2).astype("int32")
  
keep keep keep keep replace replace keep keep keep keep keep
 Add support for different mask centering types 
lib/align/detected_face.py