Fix updating users' avatars
Merge pull request #1261 from mlocati/fix-avatar-jpg-compression

Fix updating users' avatars