                                          face_index=face_idx,
                                          source_filename=src_filename,
                                          source_is_video=self._globals.is_video))
  
                  b_image = encode_image(aligned.face, extension, metadata=meta)
                  saver.save(output, b_image)
          saver.close()
  
  
  class Filter():
      """ Returns stats and frames for filtered frames based on the user selected navigation mode
      filter.
 
</s> remove         """ Add the navigation mode combo box to the transport frame """
 </s> add         """ Add the navigation mode combo box to the filter frame.

        Parameters
        ----------
        frame: :class:`tkinter.ttk.Frame`
            The Filter Frame that holds the filter combo box
        """ </s> remove         """ Adjust transport slider scale for different filters.
 </s> add         """ Adjust transport slider scale for different filters. Hide or display optional filter
        controls. </s> remove         self._globals.tk_transport_index.trace("w", self._set_frame_index)
 </s> add 
                b_image = encode_image(aligned.face, ".png", metadata=meta)
                _io["saver"].save(output, b_image)
        _io["saver"].close()
                                          face_index=face_idx,
                                          source_filename=src_filename,
                                          source_is_video=self._globals.is_video))
  
                b_image = encode_image(aligned.face, ".png", metadata=meta)
                _io["saver"].save(output, b_image)
        _io["saver"].close()
                b_image = encode_image(aligned.face, ".png", metadata=meta)
                _io["saver"].save(output, b_image)
        _io["saver"].close()
                b_image = encode_image(aligned.face, ".png", metadata=meta)
                _io["saver"].save(output, b_image)
        _io["saver"].close()
  
  
  class Filter():
      """ Returns stats and frames for filtered frames based on the user selected navigation mode
      filter.
keep keep keep keep replace replace replace keep keep keep keep keep
 Add Misalignment Detection
  - lib.align.AlignedFace - Add average_distance property (distance from mean_face)
  - tools.manual - Add misaligned Faces filter
  - tools.sort - Add sort by distance (misaligned sort)Add "Misaligned Faces" filter to manual tool 
tools/manual/detected_faces.py