Interpolation and ImageFunctions with tempaltes