Pass a type error when the URL is not an image URL

Currently http-image-size does not pass an error to the callback function when it fails to detect image type, or the URL is not an image URL.