fixed bug on PropSeg when the image contains a lot of null slices