Integrate the flood fill function
Add option to disable plot displaying