Use is-jpg directly instead of image-type / Update test

* We don't need to download [such a various modules](https://github.com/sindresorhus/image-type/blob/master/package.json#L53-L60) for this plugin.
* I updated the test to invoke callback function immediately if an errror occurs.