implemented drawing via mouse