Added gravatar image uploading and fixed bugs