                       "adjusted_matrix: %s", self.stored_size, mask_size, zoom, affine_matrix.shape,
                       adjust_mat.shape)
          return adjust_mat
  
      def to_dict(self):
          """ Convert the mask to a dictionary for saving to an alignments file
  
          Returns
          -------
          dict:
 
</s> remove         logger.trace("storage_size: %s, mask_size: %s, zoom: %s, original matrix: %s, "
                     "adjusted_matrix: %s", self.stored_size, mask_size, zoom, affine_matrix.shape,
                     adjust_mat.shape)
 </s> add         logger.trace("storage_size: %s, mask_size: %s, zoom: %s, "  # type: ignore
                     "original matrix: %s, adjusted_matrix: %s", self.stored_size, mask_size, zoom,
                     affine_matrix.shape, adjust_mat.shape) </s> remove     def to_png_meta(self):
 </s> add     def to_png_meta(self) -> MaskAlignmentsFileDict: </s> remove         affine_matrix: numpy,ndarray
 </s> add         affine_matrix: :class:`numpy,ndarray` </s> remove         retval = dict()
        for key in ("mask", "affine_matrix", "interpolator", "stored_size", "stored_centering"):
            retval[key] = getattr(self, self._attr_name(key))
        logger.trace({k: v if k != "mask" else type(v) for k, v in retval.items()})
 </s> add         assert self._mask is not None
        affine_matrix = self.affine_matrix.tolist() if is_png else self.affine_matrix
        retval = MaskAlignmentsFileDict(mask=self._mask,
                                        affine_matrix=affine_matrix,
                                        interpolator=self.interpolator,
                                        stored_size=self.stored_size,
                                        stored_centering=self.stored_centering)
        logger.trace({k: v if k != "mask" else type(v) for k, v in retval.items()})  # type: ignore
    def to_dict(self, is_png=False) -> MaskAlignmentsFileDict:
                       "adjusted_matrix: %s", self.stored_size, mask_size, zoom, affine_matrix.shape,
                       adjust_mat.shape)
          return adjust_mat
  
    def to_dict(self, is_png=False) -> MaskAlignmentsFileDict:
          """ Convert the mask to a dictionary for saving to an alignments file
  
          Returns
          -------
          dict:
keep keep keep keep replace keep keep keep keep keep
 lib.align updates:
  - alignments.py
    - Add typed dicts for imported alignments
    - Explicitly check for presence of thumb value in alignments dict
    - linting
  - detected_face.py
    - Typing
    - Linting
    - Legacy support for pre-aligned face
    - Update dependencies to new property names 
lib/align/detected_face.py