uncomment releaseImage and rename cvReleaseCapture -> releaseCapture