Working on paintr fixes. Trying to implement correct mousedown, mouseup, and mouseleave.