Introduce straight lines. Fix conversion from binary to coords.