Added option to save morphological mask into main loop