Reduce direction detection to 5 pixels (previously 10)