I have created a class, I am dynamically filling the statement in the template string with a loop, one of them is a picture, and I want to add an event listener click to the pic