Ummm the paths for the images are completly different from where you execute the script from, it's dependant on where the server places you not where the script actualy is. You'll have to rewrite the required files to either dynamicly change the image locations or to the proper location from the point of view of the original script.
Images are loaded from the clients not pushed from the server, any good book on HTML would teach you that.