Compress images to fit network requirements