put avatar in <defs> and use <ref> to link