Pass MIME type to `preProcess` function

I think this handles it.