and use the parameter variable in the 'image location' function

in the function editor add

return {?ParameterName}