fixed error reporting if you don't have cv2 (thanks rab)