Fix deprecated mimetype argument