refactor some & add some tests plus an optional size parameter for gravatar_for