improve coverage and code style consistency

* check code coverage with istanbul and coveralls
* use eslint instead of jshint
* introduce node-jscs
* add more tests to cover various cases
* decrease redundancy
use through2 instead of through

close #1
update dependencies

* support SVG
* include image type in the result