Added auto conversion for local URLs to relative path

If the source image is a URL, but happens to be on the same domain as
the thumb.php script, then it will convert the source URL into a
relative path so that it can be displayed, as URLs are not allowed