updated template with svg fallback