Replace cv2 by skimage, add recovery ability