[ticket/12900] Fix potential avatar size box overflow

PHPBB3-12900
Merge pull request #2876 from PayBas/ticket/12900

[ticket/12900] Fix potential avatar size box overflow
Merge branch 'develop-ascraeus' into develop