Line Drawing Java : Java preventing dotted lines when mouse is moved fast