look at examples for make size
new examples
implement quad pattern detection