Limit the initial extent for skullstrip.

This adds some robustness: it finds out which direction is the Z
direction, and then uses only the most superior N slices, where N
is 0.7 times the geometric mean of the number of slices in the X
and Y directions.