Better line drawing with the Bresenham's line algorithm