changed the radius of disk structuring element to image width / 500 (~2 px for test cases)