Refactor resample step

-- WIP --
The aim here is to be able to resample both the fixed and the moving image
of the register step.