need to account for png filter algorithm byte. also, since the buffer is not cleared on read, we need to insure a full read of the header.