fixed bug in the new version of cornerSubPix