Modify media grid templating