Compactly supported transformations for landmark-based image registration with applications to medicine