  
          trigger_patch = Event()
          self._samples = Samples(arguments, 5, self._display, self._lock, trigger_patch)
          self._patch = Patch(arguments,
                              self._samples,
                              self._display,
                              self._lock,
                              trigger_patch,
                              self._config_tools,
 
</s> remove                                     arguments=self._generate_converter_arguments(arguments),
 </s> add                                     arguments=self._generate_converter_arguments(arguments,
                                                                                 available_masks), </s> remove     def __init__(self, arguments, samples, display, lock, trigger, config_tools, tk_vars):
        logger.debug("Initializing %s: (arguments: '%s', samples: %s: display: %s, lock: %s,"
                     " trigger: %s, config_tools: %s, tk_vars %s)", self.__class__.__name__,
                     arguments, samples, display, lock, trigger, config_tools, tk_vars)
 </s> add     def __init__(self, arguments, available_masks, samples,
                 display, lock, trigger, config_tools, tk_vars):
        logger.debug("Initializing %s: (arguments: '%s', available_masks: %s, samples: %s, "
                     "display: %s, lock: %s, trigger: %s, config_tools: %s, tk_vars %s)",
                     self.__class__.__name__, arguments, available_masks, samples, display, lock,
                     trigger, config_tools, tk_vars) </s> remove             mask = predicted_mask
 </s> add             mask = predicted_mask[..., None] </s> remove         raw_mask = np.expand_dims(raw_mask, axis=-1) if raw_mask.ndim != 3 else raw_mask
        mask = np.expand_dims(mask, axis=-1) if mask.ndim != 3 else mask
 </s> add 
                            self._available_masks,
  
          trigger_patch = Event()
          self._samples = Samples(arguments, 5, self._display, self._lock, trigger_patch)
          self._patch = Patch(arguments,
                            self._available_masks,
                              self._samples,
                              self._display,
                              self._lock,
                              trigger_patch,
                              self._config_tools,
keep keep keep add keep keep keep keep keep
 Convert - bugfixes
- Default mask to an available mask in Preview tool
- Correctly output predicted mask 
tools/preview.py