Rewrite

* Use ava for testing
* Adjust code to match imagemin code style
1.0.0