avoids edge extraction error by considering whole picture only, almost constant number of clusters achieved