title: How to put an image from python to klipper?
body: <p>Using python, one can read in an image:</p>
  
  <pre><code>from PIL import Image, ImageTk
  image = Image.open("test.jpg")
  </code></pre>
  
  <p>Then one can write to klipper in the following way:</p>
  
  <pre><code>import dbus
  bus = dbus.SessionBus()
  proxy = bus.get_object("org.kde.klipper","/klipper")
  iface = dbus.Interface(proxy,"org.kde.klipper.klipper")
  iface.setClipboardContents("text")
  </code></pre>
  
  <p>But when I try to write an image I just opened - it says it can't accept it:</p>
  
  <pre><code>iface.setClipboardContents(image)
  TypeError: Expected a string or unicode object
  </code></pre>
  
  <p>So my question is: "how to put an image to klipper with python?"</p>