save before OpenCV