get the ful imagepath for any image on the web
<p>If I get any image tag from any website I want to be able to get the full path to the image file.</p>

<p>eg:</p>

<pre><code>src="http://www.example.com/images/foo.gif" //This is fine

src="images/foo.gif"

src="/images/foo.gif"
</code></pre>

<p>for the bottom two src attributes, how can i get the full image path?
I want to treat the src attribute universally and always get the full path of an image.</p>
