use initialize method replace to __init__
- format code
- remove print code
add a method to get avatar dir