Added support for pluggable interpolation filters.
Rewrote linear interpolation filter.