This line eliminates invalid mime types, as per what `extension()` returns.