Added gravatar function and adjust layout