-dilate and erode threshold images for better square find