avatar_dir must be a class variable
remove unused avatar_url
fix typo