make sure the size of avatar is reasonable