                                          centering=self._storage_centering,
                                          size=self.input_size,
                                          coverage_ratio=self.coverage_ratio,
                                          dtype="float32",
                                          is_aligned=self._image_is_aligned)
  
                  assert feed_face.face is not None
                  if not self._image_is_aligned:
                      # Split roi mask from feed face alpha channel
                      roi_mask = feed_face.face[..., 3]
 
</s> remove                 if not self._image_is_aligned:
 </s> add                 if not item.is_aligned: </s> remove                                         is_aligned=self._image_is_aligned)
 </s> add                                         is_aligned=item.is_aligned) </s> remove                 if not self._image_is_aligned:
 </s> add                 if not item.is_aligned: </s> remove             meta = dict(alignments=face.to_png_meta(),
                        source=dict(alignments_version=self._alignments.version,
                                    original_filename=output_filename,
                                    face_index=real_face_id,
                                    source_filename=os.path.basename(extract_media.filename),
                                    source_is_video=self._images.is_video,
                                    source_frame_dims=extract_media.image_size))
            image = encode_image(face.aligned.face, extension, metadata=meta)
 </s> add             aligned = face.aligned.face
            assert aligned is not None
            meta: PNGHeaderDict = dict(
                alignments=face.to_png_meta(),
                source=dict(alignments_version=self._alignments.version,
                            original_filename=output_filename,
                            face_index=real_face_id,
                            source_filename=os.path.basename(extract_media.filename),
                            source_is_video=self._loader.is_video,
                            source_frame_dims=extract_media.image_size))
            image = encode_image(aligned, extension, metadata=meta)
                                        is_aligned=item.is_aligned)
                                          centering=self._storage_centering,
                                          size=self.input_size,
                                          coverage_ratio=self.coverage_ratio,
                                          dtype="float32",
                                        is_aligned=item.is_aligned)
  
                  assert feed_face.face is not None
                  if not self._image_is_aligned:
                      # Split roi mask from feed face alpha channel
                      roi_mask = feed_face.face[..., 3]
keep keep keep keep replace keep keep keep keep keep
 Update Face Filter
  - Remove old face filter
  - plugins.extract.pipeline: Expose plugins directly
  - Change `is_aligned` from plugin level to ExtractMedia level
  - Allow extract pipeline to take faceswap aligned images
  - Add ability for recognition plugins to accept aligned faces as input
  - Add face filter to recognition plugin
  - Move extractor pipeline IO ops to own class 
plugins/extract/mask/_base.py