clean function

Clean up and fill in pixel sets (morphological opening and closing)