First implementation of svg writer