Hierarchical spline-based image registration