Fixed Typos in MaskImageIn.

Just typo fixes and replaced length(size(m)) with ndims(m).