Check if image is 2d to set 2d connectivity instead of 3d.

This is important so the correct watershed class is selected later.
Use the correct watershed transform based on the 2d or 3d connectivity.
Correct animation method.

Notice that the result shows -1 values on the non-visited pixels.
Set output title correctly.

It adds "-watershed" to the input image title (before the extension).