Embed CRM record images in email templates

Embed CRM record images in email templates

I have email templates that I want to embed dynamic images in their body - not as an attachment. For the context, the image is a QR code individual to each contact.

So there are couple of challenges for which I think there is no solution in CRM:
1/ I want to attach an image from a file field
2/ I want to embed the image in the email body

The first one could be done if the image (the QR code in my specific case) was a record attachment, not a file field. But even then, the image would be sent as email attachment outside the email body.

Any ideas?