Refactored media to be centralized in the base template.