add simple, c++ version of nik2img