dual/quad detection preparation
fix silk rect detection (Closes #29)