Modifying media templates