Show image on dynamic page only when there is an image in the dataset

I have a dataset, but only some entries have an image. I made a Velo script to expand the image when it is available. The problem is: The image won’t show on the page.

It’s the same script I did on another site. No issue there. Of course, I changed the parameters in the script for this site.

What is wrong?