Enabling mask rendering for slice and 3D viewer.