extend template content helper, suport read images as datauri