Elements added by javascript snipped don't show

In my bricks project i have a javascript snipped that listens to DOMContentLoaded.
When the content is loaded, i have a function here that adds elements via appendChid(); . Now when i load the page, i can’t see the elements i added(images), but i can see their hitbox in the developer tools.

What’s the reason my elements don’t show after adding them via javascript?