added bresenham algorithm to get pixels from the defined line