updated snippet code for external SVGs