Refactored itk_resample