Add size parameter to getAvatar in User model