Check if a Buffer/Uint8Array is an XCF image