First off, I know that this sort of a duplicate, but I believe that my problem is different from the other question on the same topic (read: more n00by).
Basically, I'm trying to use this script. To make my code neater and more easily human-readable, I decided to put it into a seperate script, wrap the whole thing in a function with a path parameter, and then call the function (after setting up the script on the main page) with a the path to the image I wanted to use.
My question is pretty basic; what's the correct way to format the path? Do I format the path when I pass it to the function as a string? Right now, what I have isn't working.