fixed bug in number of holes counting and using erode for thicker target line