Testing with compressed images