mimetype keyword is deprecated; replacing with content_type