Spline-based image registration