Conditionally select pictures for Document Builder

Options

I've recently learned how to include pictures in Document Builder, which is phenomenal. However, I want to take this a step further and choose which image is attached to the row based on the content of another cell. Is there a way to do this?

For example, I want Customer A's logo to be generated on the document when the product belongs to Customer A, and Customer B's logo to be on the document when the product belongs to Customer B.

Can this be done through formulas, or do I have to manually upload the image into each cell?

Being able to conditionally choose images will cut the number of document templates significantly.

Answers