If there's no context we're using the simple API functions - fall back to malloc and free.
Fix kernel lookup for downsampling.
Tests to ensure images of a solid color stay the same solid color after resampling.
fix compile