Add line drawing functions to utils.