Fixed bug which caused painttool not to react on mouse click
Removed static local variable which made it neccessary that the mouse cursor
had to be move (even a little bit) before paint tool was able to react on a
simple mouse click. Painttool logic also works without this variable.