what you can also try @Georgy Rakita to use the image_tag on an li-object. just place it on a div like this:
li-object="product | image_url: width: 200 | image_tag"
and then shopify will create a img element with all the necessary attribute applied. This will be rernderd then:
<img src="//polinas-potent-potions.myshopify.com/cdn/shop/files/science-beakers-blue-light-new.jpg?v=1683744744&width=200" alt="Health potion" srcset="//polinas-potent-potions.myshopify.com/cdn/shop/files/science-beakers-blue-light-new.jpg?v=1683744744&width=200 200w" width="200" height="133">
https://shopify.dev/docs/api/liquid/filters/image_tag