skeleton for writing image processing C++