Added gzip compression to app.
Changed image compression method