Update logged_in.php - simplify gravatar integrati

simplify gravatar integration to a simple function