Clean up svg code