Added a function 'removeSmallBlobs'