add image & video frontmatter to posts