Usually the context define that path, if you are listing images you will get different paths and all of them are built-in in the image array. For anything else (like your own iterator and things like that) you could use the following built-in functions: