Moved svg writing to a separate class
fixed bug with svg width in percent without viewbox