Thanks Brett, let me clear things a little bit,
First, many thanks for your efforts, every minute you give to help me is truly appreciated.
Second, your function worked perfect by accessing the image using the browser.
Third, actually my modification didn't resolve anything, that was a sample technique that I saw been used by other page rank sites that offer visitors to add the page rank images via html code. And that is what I'm trying to replicate?
here is couple of the other sites that are offering the code to visitors:
http://www.mygooglepagerank.com/pagerank.php
http://pr.blogflux.com/
I'm still can't make it work, Any feed back on solving that will be wonderful!
Best regards,