fix bad pixel repair for older OpenCV versions
again, contiguousness..