Fixed bounding box rendering issues.
Implemented SKIP_CNT again, to improve corner detection rates.
Implemented check to remove rectangles whos boundarys lie outside the image.
Removed lots of dead code.