Fix indexing error on pyrDown function
(Later, it will be renamed to impyramid)
Fix indexing error on getRectSubPix function