Use tmp directory to store all the .seg files