The term for the former is an ekphrastic poem.
On the topic of life and death, tangentially anyway, I published a poem today that many will hate and I suspect you will appreciate. I had this thought today before I published it Under the Moon when another poetry centric pub said it's too intrense for them. Nothing is too intense for my friend whose name I shall not reveal. https://medium.com/write-under-the-moon/the-joy-of-murdered-souls-a9c931461f29