Bug fixed to generate a distance vector

Previous version had an error to erroneously generate a distance map
after converting an offset type image to a vector type image. The
reason is not clear when UnaryFunctorImageFilter, used in conversion,
doesn’t work or not. After changing from the UnaryFunctorImageFilter to
manual conversion, it works now.