A user submits a survey via Survey123 app, and they can optionally take a photo if they like, I would like to show/hide the image section of my report based on wether a photo was taken. So if they only take two photos, only show the first two image tags, hide the rest.
It's currently setup like this:

I did read in another post that I should be using something like ${if photo1} but I have no idea how to implement that above, I have tried several variations and none have worked. Could someone please show me how to write the below two lines so that they are only included in my Survey123 Report if a photo was taken?
Image
${weed_image01 | size:500:0}
Thanks for your time.