It would be useful to have a handlebars function to convert the output to a base64 string. I have discussed with you via email, and I will be opening a pull request for this change shortly.