build functionality to find clusters, check wheather pixel were already checked