Add preview widget for flood fill
Fix compile error on mac