improve drawing window performance and fix mouse window handling
implemented Bresenham's line algorithm.
add incomplete drawing thick line