excluded the direct paint check because of zooming? errors. TODO: reinclude and check whether the stredge factors have to be applied to the selectionRectangle inside the method Picture.repaintrectangle().