title: monkeyrunner problem. java.lang.ClassCastException: when use sameAs() method
body: <p>I build SDK from source code.
  And I want to use the following script:</p>
  
  <pre><code>img=MonkeyRunner.loadImageFromFile(path='/home/alsu/monkeyrunner/device.png')
  img_1=device.takeSnapshot()
  
  img_1.sameAs(img, 1)
  </code></pre>
  
  <p>But this error occurs:</p>
  
  <pre><code>File "/home/semc/monkey/out/host/linux-x86/sdk/android-sdk_eng.semc_linux-x86/tools/test.py", line 23, in &lt;module&gt;
      if img_1.sameAs(img,1):
      at com.android.monkeyrunner.MonkeyImage.sameAs(MonkeyImage.java:138)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
  
  java.lang.ClassCastException: java.lang.ClassCastException: org.python.core.PySingleton cannot be cast to com.android.monkeyrunner.core.IMonkeyImage
  </code></pre>
  
  <p>Please help.</p>