made NeuronsImageWriter create the output directory if not present
made slice overlap comparison to threshold value faster