Task f - keepConnected

Delete regions which are not connected to foreground scribble with
keepConnected