Introducing viewsmodels, delete writeToSvg function