Image interpolation using adaptive P-spline