fix bug when repairing bad pixels without OpenCV