adds images as data-uri/base64 for emai template