Update avatar.php

'avatar.php' base rewrite.