pull out IHDR_SIZE for reuse