Changed program logic, we only need to check the contents of the idat_buffer if the char is 'T' because the buffer can't be IDAT if the last char is a 'I', 'D' or 'A'...
Sigh, hij vindt eindelijk de IDAT chunk
Retrieved length of data chunk