clean avatar code

Signed-off-by: xiehuc <xiehuc@gmail.com>