Hi, in my flow I am trying to use image from an array of images in a Microsoft Word template.
Let's say that I have 6 images in my array "pics". when I initialize a variable as variables('pics')[0], it works perfectly and takes the first image from the array.
I would like to automate that so I don't have to create 6 (and later unlimited number of) variables. I thought that I can just use the same code directly in Microsoft word template (as below):

And the above shows me an error message that the image must be a JPG or a PNG file.
Why? When I initialize a variable object of variables('pics')[0] and then put variables('Pics') in a Word Template then it all works fine, but I cannot do this as I would like to use an array without variables
Any advice? Thank you