Added in the ability to pass function as a 'rename' param in the options. Allows the generated url to be manipulated.