Improve the "add_linked_img" Twig macro