properly draw lines with 0 width/height