mimetype was deprecated, content_type for the win