Hi. This is what I use on my site. I use it for all my files. The key is to place it above the files with images in them. I keep images that I want to link to other sites in another folder. Just for your FYI.
I have others, but haven't gotten around to putting them up. Just remember to change the "your site" twice. One has "www" and ther other... well, you get the idea.