          self.args.final_process = _final.replace('-', '_')
  
          self.sort_process()
  
      @staticmethod
      def launch_aligner(loglevel):
          """ Load the aligner plugin to retrieve landmarks """
          out_queue = queue_manager.get_queue("out")
          kwargs = {"in_queue": queue_manager.get_queue("in"),
                    "out_queue": out_queue}
  
 
</s> remove             aligner = PluginLoader.get_aligner(plugin)(loglevel=loglevel)
 </s> add             aligner = PluginLoader.get_aligner(plugin)(loglevel=self.args.loglevel) </s> remove         image = cv2.imread(image_file, cv2.IMREAD_GRAYSCALE)
 </s> add         image = cv2.imread(image_file)
        if image.ndim == 3:
            image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) </s> remove         self.launch_aligner(self.args.loglevel)
 </s> add         self.launch_aligner() </s> remove         self.launch_aligner(self.args.loglevel)
 </s> add         self.launch_aligner() </s> remove             def renaming(src, output_dir, i, changes):
 </s> add             def renaming(src, output_dir, i, changes):  # pylint: disable=unused-argument
    def launch_aligner(self):
          self.args.final_process = _final.replace('-', '_')
  
          self.sort_process()
  
    def launch_aligner(self):
    def launch_aligner(self):
          """ Load the aligner plugin to retrieve landmarks """
          out_queue = queue_manager.get_queue("out")
          kwargs = {"in_queue": queue_manager.get_queue("in"),
                    "out_queue": out_queue}
  
keep keep keep keep replace replace keep keep keep keep keep
 Sort tool. Image grayscale conversion bugfix 
tools/sort.py