JPEG compression test