Changed imageSegmentation to use BFS, but the result is still not desired