Move the multiprocessing worker out of the segment method to enable this to work on Windows

I have not done in-depth testing, but with this fix it seems to work on Windows (ie. I can open an image, segment it, re-segment an individual box, and export the images).