Update avatar.php

'avatar.php' item check extension.