jpeg -> tiff convertor in C