cache avatar when register.