Use the correct mime type when saving