Add optional size parameter for the gravatar_for helper, write a test for the flash error and changed the flash html with cleaner code using content_tag