Separated mask loader into nunjuck template