Updating directives and templates to mark inline attachment urls as trusted