Implementing line drawing in Framebuffer