tidied up member avatar implementation