updating avatars for rails