Fix avatars in the network graph for relative-url setups.

This fixes the avatar URL in case there is a relative URL root.