              output_filename = f"{filename}_{idx}{extension}"
              meta = dict(alignments=face.to_png_meta(),
                          source=dict(alignments_version=self._alignments.version,
                                      original_filename=output_filename,
                                      face_index=idx,
                                      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> remove                 sub_folder = extract_media.sub_folders[idx]
                saver.save(output_filename, image, sub_folder)
            if extract_media.sub_folders[idx]:  # This is a filtered out face being binned
 </s> add                 saver.save(out_name, image, sub_folder)

            if sub_folder:  # This is a filtered out face being binned
                skip_idx += 1 </s> remove         for idx, face in enumerate(extract_media.detected_faces):
            output_filename = f"{filename}_{idx}{extension}"
 </s> add         skip_idx = 0
        for face_id, face in enumerate(extract_media.detected_faces):
            real_face_id = face_id - skip_idx
            output_filename = f"{filename}_{real_face_id}{extension}"
                                    face_index=real_face_id,
              output_filename = f"{filename}_{idx}{extension}"
              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)
  
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Extract. numbering issue when binning results 
scripts/extract.py