Add twig extension to display associated media