Fixes #1624 - Avatar extension check

Revert code to MyBB 1.6. Lang file must be changed (next commit).
Merge pull request #1627 from Cu8eR/patch-4

Fixes #1624 - Avatar extension check