A Tiff file processing program in C++