Add lossless compression to build script

Related to 836372bfc4f9f0dacb7d5b1c5e69e9744cc7771e and [DataTables/DataTables 470](https://github.com/DataTables/DataTables/pull/470)

This adds image compression to the build script