Added support of mask image for 3d Volume Potts model with flexible regu...

...larizer