Use `image-type` to detect file type