Working svg rendering from text template