Check if a Buffer/Array is an XCF image