Invoke callback immediately if errror occurs
Use is-jpg directly instead of image-type

https://github.com/sindresorhus/is-jpg
Merge pull request #2 from shinnn/master

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