              self._pad_legacy_masks(face)
          return faces
  
      @classmethod
      def _pad_legacy_masks(cls, detected_face):
          """ Recenter legacy Neural Network based masks from legacy centering to face centering
          and pad accordingly.
  
          Update the masks back into the detected face objects.
  
 
</s> remove         processor = getattr(self, "_get_{}".format(action))
 </s> add         processor = getattr(self, f"_get_{action}") </s> remove     def _check_folder(self):
 </s> add     def _check_folder(self) -> None: </s> remove         with open(output_file, "w") as f_output:
 </s> add         with open(output_file, "w", encoding="utf8") as f_output: </s> remove         if self._is_legacy and extracted_faces != 0 and not self._arguments.large:
 </s> add         if self._is_legacy and extracted_faces != 0 and self._min_size == 0:
    def _pad_legacy_masks(cls, detected_face: DetectedFace) -> None:
              self._pad_legacy_masks(face)
          return faces
  
      @classmethod
    def _pad_legacy_masks(cls, detected_face: DetectedFace) -> None:
          """ Recenter legacy Neural Network based masks from legacy centering to face centering
          and pad accordingly.
  
          Update the masks back into the detected face objects.
  
keep keep keep keep replace keep keep keep keep keep
 Alignments tool - Replace 'extract-large' with 'min-size' 
tools/alignments/jobs.py