performance without cv2 in substract