update test cases to work on things other than barbara.png
rename NEAREST to BOX
write test for BOX
Merge branch 'resample2' into resample
restore correct definition of box
check whether filter kernels are normalized
tighten bounds on filter normalization test
If there's no context we're using the simple API functions - fall back to malloc and free.