compress img, html5mode