Added corner detection, draw dots on the corners, this will be used to
draw a bezier curve.