Add a test for image compression