use svg instead of canvas