We only need to check the content-type. There's no chance a webp file will get mismatched as another image type.