Better detection of remote images

Weeds out bad paths/URLs like //directory/image.jpg
Better handling of absolute URLs pointing to files on localhost