fixed bugs, reimplemented lines between cells without pixel coordinates