          Parameters
          ----------
          saver: lib.images.ImagesSaver
              The background saver for saving the image
          faces: dict
              The output dictionary from :class:`plugins.extract.Pipeline.Extractor`
          """
          logger.trace("Outputting faces for %s", faces["filename"])
          final_faces = list()
          filename, extension = os.path.splitext(os.path.basename(faces["filename"]))
          for idx, face in enumerate(faces["detected_faces"]):
 
</s> remove         logger.trace("Outputting faces for %s", faces["filename"])
 </s> add         logger.trace("Outputting faces for %s", extract_media.filename) </s> remove         filename, extension = os.path.splitext(os.path.basename(faces["filename"]))
        for idx, face in enumerate(faces["detected_faces"]):
 </s> add         filename, extension = os.path.splitext(os.path.basename(extract_media.filename))
        for idx, face in enumerate(extract_media.detected_faces): </s> remove         for face in faces["detected_faces"]:
            face.load_aligned(faces["image"], size=size)
 </s> add         for face in extract_media.detected_faces:
            face.load_aligned(extract_media.image, size=size) </s> remove         faces: dict
            Dictionary output from :class:`plugins.extract.Pipeline.Extractor`
 </s> add         extract_media: :class:`plugins.extract.pipeline.ExtractMedia`
            Output from :class:`plugins.extract.pipeline.Extractor` </s> remove             Dictionary of detected_faces with the filename as its key and a list of
            :class:`lib.faces_detect.DetectedFace` as the values for pairing with reloaded images.
 </s> add             Dictionary of :class:`plugins.extract.pipeline.ExtractMedia` with the filename as the
            key for repopulating the image attribute.
        extract_media: :class:`~plugins.extract.pipeline.ExtractMedia`
            The output from :class:`~plugins.extract.Pipeline.Extractor`
          Parameters
          ----------
          saver: lib.images.ImagesSaver
              The background saver for saving the image
        extract_media: :class:`~plugins.extract.pipeline.ExtractMedia`
            The output from :class:`~plugins.extract.Pipeline.Extractor`
        extract_media: :class:`~plugins.extract.pipeline.ExtractMedia`
            The output from :class:`~plugins.extract.Pipeline.Extractor`
          """
          logger.trace("Outputting faces for %s", faces["filename"])
          final_faces = list()
          filename, extension = os.path.splitext(os.path.basename(faces["filename"]))
          for idx, face in enumerate(faces["detected_faces"]):
keep keep keep keep replace replace keep keep keep keep keep
 plugins.extract - Create ExtractMedia class for pipeline flow
Bugfix - Fix memory leak in extract 
scripts/extract.py