JS-inserting images into an output element

This is JS. so I have a program with many custom made icons/ emojis/ signals. I needed to make a separate file for each. The point is to type on the keyboard and have each keydown correspond to an icon and display the chain of icons in an output box. I have been able to do this but only using an the html ‘picture’ element to hold the displayed icons.I would really like to find a way to use a different element or device to show the icon output so i could copy the output, but all my attempts have been a failure.
Thanks

I have been able to do this but only using an the html ‘picture’ element to hold the displayed icons.