make a function
image bounding box for better visualization
output convex matching patterns
a bug
some updated output