Improved edge smoothing by reducing number of cases it looks at