proper avatar caching