add draw line function

Signed-off-by: TengChou Yang <threefure@gmail.com>