          if self._matrices[self._centering] is None:
              matrix = self._matrices["legacy"].copy()
              matrix[:, 2] -= self.pose.offset[self._centering]
              self._matrices[self._centering] = matrix
              logger.trace("original matrix: %s, new matrix: %s", self._matrices["legacy"], matrix)
          return self._matrices[self._centering]
  
      @property
      def _head_size(self):
          """ int: The size of the full head extract image calculated from the required
 
</s> remove         if self._matrices[self._centering] is None:
 </s> add         if not np.any(self._matrices[self._centering]): </s> remove     def _head_size(self):
        """ int: The size of the full head extract image calculated from the required
        centering. """
        with self._cache["head_size"][1]:
            if self._centering not in self._cache["head_size"][0]:
                self._cache["head_size"][0][self._centering] = get_centered_size(self._centering,
                                                                                 "head",
                                                                                 self.size)
        return self._cache["head_size"][0][self._centering]

    @property
    def pose(self):
 </s> add     def pose(self) -> "PoseEstimate": </s> remove     def matrix(self):
 </s> add     def matrix(self) -> np.ndarray: </s> remove     logger.trace("image shape: %s, matrix: %s, size: %s. padding: %s",
 </s> add     logger.trace("image shape: %s, matrix: %s, size: %s. padding: %s",  # type: ignore </s> remove     def padding(self):
 </s> add     def padding(self) -> int:
            logger.trace("original matrix: %s, new matrix: %s",  # type: ignore
                         self._matrices["legacy"], matrix)
          if self._matrices[self._centering] is None:
              matrix = self._matrices["legacy"].copy()
              matrix[:, 2] -= self.pose.offset[self._centering]
              self._matrices[self._centering] = matrix
            logger.trace("original matrix: %s, new matrix: %s",  # type: ignore
                         self._matrices["legacy"], matrix)
          return self._matrices[self._centering]
  
      @property
      def _head_size(self):
          """ int: The size of the full head extract image calculated from the required
keep keep keep keep replace keep keep keep keep keep
 lib.align.aligned_face updates
  - Typing
  - Legacy support for pre-aligned faces
  - Coverage support for pre-aligned faces
  - Standardized retrieval of sub-crops 
lib/align/aligned_face.py