fix for dragging nodes
Merge pull request #14 from Sambod50/master

Fixes issue #9 - painting issues while dragging nodes.