fixed bug in 'avatars_path' helper function