@NataliaB, Format your Twig code properly and have a good look at it. It seems that while looping the features, the images are being looped…
Also please note a warning from the docs i’ve shown you before in post Create own modular template with custom fields - #8 by pamtbaau
The
file
field is intended to be used by configuration , theme , and plugins blueprints, NOT page blueprints . For pages, you should use the existingpagemedia
field and then utilize the filepicker field to select the files.