refactored gravatar stuff a bit. fixed bug with saving new contacts