Fix to preserve input image shape upon executing `random_walker`

This PR addresses #499; the input image data is no longer changed.

Additional assertion added for non-multichannel case.