implementation of Paint Application using bresenham algorithm