readIFD sketch code