Fix (hopefully) the getAvatar method for User