title: how to add image in group in fabric js
body: <p><a href="https://i.stack.imgur.com/6JyRH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6JyRH.png" alt="enter image description here"></a>In fabric js at the time of selecting the object i.e group i want to add cross-icon image on that group.Please help how it would be possible..</p>
  
  <pre><code>             &lt;script&gt;        
             canvas.on('object:selected', function (e) {
             var activeobject = e.target; //active element is group in which i want to add image
             var imgs = fabric.Image.fromURL('images/delete.png', function (oImg)  {
  
             oImg.scale(0.5).setFlipX(true);
  
                                  });
              activeobject.push(imgs);//here .push is giving errpr that it is not a function
  </code></pre>
  
  <p>});</p>