[ticket/9758] Optimises the html code of avatar image in header

PHPBB3-9758