Detect images using HTTP content type.

Changes the algorithm for looking up images from 'gis' plug-in to
perform a HTTP head request and then compare the resolved URL's
content type.