Image processing via splines