Stopped using hardcoded value for rectangularity threshold