title: how to get response in the form of img in python aiml
body: <p>so I was trying to make a chatbot with <a href="https://github.com/paulovn/python-aiml" rel="nofollow noreferrer">https://github.com/paulovn/python-aiml</a></p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;aiml version="1.0"&gt;
  &lt;!-- --&gt;
  &lt;!-- Free software (c) 2011 ALICE A.I. Foundation.   --&gt;
  &lt;!-- This program is open source code released under --&gt;
  &lt;!-- the terms of the GNU General Public License     --&gt;
  &lt;!-- as published by the Free Software Foundation.   --&gt;
  &lt;!-- Complies with AIML 1.0 Tag Set Specification --&gt;
  &lt;!-- as adopted by the ALICE A.I. Foundation.  --&gt;
  &lt;!-- Last modified 10/5/2011 --&gt;
  &lt;!-- --&gt;
  &lt;category&gt;&lt;pattern&gt;HAVE YOU READ THE COMMUNIST *&lt;/pattern&gt;
  &lt;template&gt;Yes, Marx had made some interesting observations.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHAT IS A GOVERNMENT&lt;/pattern&gt;
  &lt;template&gt;Ideally it is a representative of the people.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHAT IS GREENPEACE&lt;/pattern&gt;
  &lt;template&gt;Global organization promoting enviornmental activism.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHAT IS THE GOVERNMENT&lt;/pattern&gt;
  &lt;template&gt;&lt;srai&gt;WHAT IS GOVERNMENT &lt;/srai&gt;&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHAT IS CAPITALISM&lt;/pattern&gt;
  &lt;template&gt;The economic system in which all or most of the means of production and distribution, as land, factories, railroads, etc., are privately owned and operated for profit, originally under fully competitive conditions. It has been generally characterized by a tendency toward concentration of wealth, and, in its later phase, by the growth of great corporations, increased governmental control, etc.  Its is also known as the principles, methods, interests, power, influence, etc. of capitalists, especially of those with large holdings.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHAT IS SOCIALISM&lt;/pattern&gt;
  &lt;template&gt;&lt;random&gt;              &lt;li&gt;Communism from people who want to keep their Volvos.&lt;/li&gt;               &lt;li&gt;Any of various theories or systems of the ownership and operation of the means of production and distribution by society or the community rather than by private individuals, with all members of society or the community sharing in the work and the products.&lt;/li&gt;           &lt;/random&gt;&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHAT IS GOVERNMENT&lt;/pattern&gt;
  &lt;template&gt;An established system of political administration by which a nation, state, district, etc. is governed.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHAT IS COMMUNISM&lt;/pattern&gt;
  &lt;template&gt;A sociopolitical movement advocating the common ownership of the means of production and the resolution of class conflict by bringing about a classless society. &lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHAT IS IMPEACHED&lt;/pattern&gt;
  &lt;template&gt;When a person's honor or reputation has been challenged or discredited.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHAT IS IMPEACHMENT&lt;/pattern&gt;
  &lt;template&gt;Charge against a public official of improper conduct.&lt;think&gt;              &lt;set name="it"&gt;                     &lt;set name="topic"&gt;IMPEACHMENT&lt;/set&gt;                 &lt;/set&gt;          &lt;/think&gt;&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;I DO NOT LIKE GUNS&lt;/pattern&gt;
  &lt;template&gt;That is perfectly understandable.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;I DO NOT LIKE GUNS *&lt;/pattern&gt;
  &lt;template&gt;What about the second Amendemnt?&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;IS CAPITALISM *&lt;/pattern&gt;
  &lt;template&gt;&lt;srai&gt;WHAT IS CAPITALISM &lt;/srai&gt;&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;DO YOU LIKE GUNS&lt;/pattern&gt;
  &lt;template&gt;Not especially. I am not into violence. &lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHY GUNS&lt;/pattern&gt;
  &lt;template&gt;I support the 2nd Amendment.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHO WAS THE FIRST IMPEACHED PRESIDENT *&lt;/pattern&gt;
  &lt;template&gt;Andrew Jackson.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHO WAS THE FIRST IMPEACHED *&lt;/pattern&gt;
  &lt;template&gt;Andrew Jackson.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHO IS THE GOVERNOR OF TEXAS&lt;/pattern&gt;
  &lt;template&gt;&lt;set name="he"&gt;Rick Perry&lt;/set&gt; is Rick Perry.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHO IS THE GOVERNOR OF *&lt;/pattern&gt;
  &lt;template&gt;That changes every few years.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHO IS THE GOVERNOR OF CALIFORNIA&lt;/pattern&gt;
  &lt;template&gt;Jerry Brown.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;WHO IS THE GOVERNOR *&lt;/pattern&gt;
  &lt;template&gt;It changes every few years.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;GUNS&lt;/pattern&gt;
  &lt;template&gt;Some people like guns.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;GUNS *&lt;/pattern&gt;
  &lt;template&gt;I believe in the Right to Bear Arms.&lt;/template&gt;
  &lt;/category&gt;
  &lt;category&gt;&lt;pattern&gt;TELL ME ABOUT GUNS&lt;/pattern&gt;
  &lt;template&gt;&lt;srai&gt;WHAT IS A GUN&lt;/srai&gt;&lt;/template&gt;
  &lt;/category&gt;
  &lt;/aiml&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>This is the sample code and its pretty simple but I couldn't find a single link where it tells how to make the bot send the response in the form of an image like I want the pattern to be who was marx and it responds with the image of marx</p>