ENH: Factor out PreProcessRegistrationInputs.

From RegisterImageToTubesUsingRigidTransform into its own function to avoid
future duplication of code.
Merge pull request #219 from thewtex/preprocess-refactor

ENH: Factor out PreProcessRegistrationInputs.