Hi c1982: I found a project called filetype which infer the binary file type based on the magic numbers signature
in image.go, there're many image type matcher, maybe we can reference this repository to add more image type check