adjust attachment path for templates