Add svg compiling code
Move svg rendering to individual module