title: Best strategy to mimic <img> object-fit / object-position property with konva images
body: <p>Assume we have a 1000x1000 image drawn onto canvas, and set konva image size to something like 500x700.</p>
  
  <p>Is it possible to mimic html <code>&lt;img /&gt;</code> tags <code>object-fit</code> property in konva so we can tell image object to fit image in <code>cover</code> / <code>contain</code> mode. Similarly it would be useful to mimic <code>object-position</code>.</p>
  
  <p>Thus far the only way I can think of doing this is to clip image with a rectangle with some custom logic added to handle use cases above. I was wondering if there is a better way?</p>