Simple OpenCV animation in C++ using Xcode