dont set the mimeType unless its an image