Added line drawing and offset support.