compress images and apply retina.js