C++ for image processing