Writes avatars to data/avatars