change to use svg and fix distribution bugs