Improving dot width detection