test: basic tests for compressing images.