refactored drawing code to 1 svg file