BSpline to deformation field Error