Randomly Perturbed B-Splines for Nonrigid Image Registration