Compress background using jpeg.