Pass Multiple Variables to a Script

Maybe this will help. Where I used text input, you can use KM Variable tokens, like:
%Variable%image1%