cpp: IFD: Add skeleton implementation for image reading and writing