title: Kineticjs - Rotate image clockwise 90 degrees
body: <p>I am really liking kineticjs lib but I am struggling to find any resource/examples on rotating  a kinetic image object.</p>
  
  <p>I have seen many on rotating shapes but all seem, from looking, like they rotate the whole canvas and not the image object.</p>
  
  <p>Is this true and If not, could anyone point out any documentation please?</p>
  
  <p>regards </p>
  
  <p>p.s.</p>
  
  <p>for those who want code, It's just the standard image deleration:</p>
  
  <pre><code>mainImage = new Kinetic.Image({
      image: imageObj,
      x: 0,
      y: 0,
      draggable: true,
      startScale: 1
  });
  </code></pre>
  
  <p>and have tried:</p>
  
  <pre><code>function rotateLeft(){
      $('#rotate-left').bind( $bind, function(){
          mainImage.rotate(90);
          layer.draw();
      });
  }
  </code></pre>
  
  <p>which makes the image disappear...</p>
  
  <p>regards</p>