[feature/avatars] Use array for allowed extensions and implode if needed

PHPBB3-10018