          """ Output faces to save thread """
          final_faces = list()
          for idx, detected_face in enumerate(faces["detected_faces"]):
              output_file = detected_face["file_location"]
              extension = '.png'
              out_filename = "{}_{}{}".format(str(output_file), str(idx), extension)
  
              face = detected_face["face"]
              resized_face = face.feed_face
              face.hash, img = encode_image_with_hash(resized_face, extension)
 
</s> remove             resized_face = face.feed_face
 </s> add             resized_face = face.aligned_face </s> remove         final_faces = list()
        for detected_face in faces["detected_faces"]:
            filename = self.output_dir / Path(detected_face.filename).stem
            final_faces.append({"file_location": filename,
                                "face": detected_face})
        faces["detected_faces"] = final_faces
 </s> add         self.align_face(faces, size, filename) </s> remove             aligned_landmarks = face.feed_landmarks
 </s> add             aligned_landmarks = face.aligned_landmarks </s> remove                 offset:offset + foregrounds[idx].shape[1], :3] = foregrounds[idx]
 </s> add                 offset:offset + foregrounds[idx].shape[1]] = foregrounds[idx]
            extension = Path(filename).suffix
          """ Output faces to save thread """
          final_faces = list()
          for idx, detected_face in enumerate(faces["detected_faces"]):
              output_file = detected_face["file_location"]
            extension = Path(filename).suffix
              out_filename = "{}_{}{}".format(str(output_file), str(idx), extension)
  
              face = detected_face["face"]
              resized_face = face.feed_face
              face.hash, img = encode_image_with_hash(resized_face, extension)
keep keep keep keep replace keep keep keep keep keep
 Serialize masks to alignments file

- Add new serializers (npy + compressed)
- Remove Serializer option from cli
- Revert get_aligned call in scripts/extract
- Default alignments to compressed
- Size masks to 128px and compress
- Remove mask thresholding/blur from generation code
- Add Mask class to lib/faces_detect
- Revert debug landmarks to aligned face
- Revert non-extraction code to staging version 
scripts/extract.py