if (!this.getFirstChunk('IHDR', false) === null) {
            throw new Error('Chunk ' + this.getType() + ' requires the IHDR chunk.');
        }