store mimetype on model