The paint tool shows some inefficient behavior and unnecessary complexity, which should be removed:
- to render the unconfirmed brushed region a binary node is used and shown / hidden, depending on the mouse interaction
- the binary node holds an image that contains the mask of multiple labels in a multi label case; this leads to errors when the contour of a label is generated
- the connections inside ConnectActionsAndFunctions and their corresponding functions are not clear