title: Modify fabric.Image.fromURL after initial load using Fabric.js
body: <p>I'm using theFabric.js library, and I've seen a lot of examples on how to load an image from a URL using Image.fromURL. Almost every example assigns the image to a variable, using this general setup:</p>
  
  <pre><code>var bgnd = new fabric.Image.fromURL(bgndURL, function(oImg){
      oImg.hasBorders = false;
      oImg.hasControls = false;
      // ... Modify other attributes
      canvas.insertAt(oImg,0);
  });
  </code></pre>
  
  <p>I've found that the attributes of the image can only be modified within the callback function when the image finishes loading. Is there a way to modify its attributes at a later time? I tried changing the attributes of the <code>bgnd</code> variable directly but it doesn't do anything.</p>
  
  <pre><code>bgnd.set({left: 20, top: 50});
  canvas.renderAll();
  </code></pre>
  
  <p>or</p>
  
  <pre><code>bgnd.rotation = 45;
  canvas.renderAll();
  </code></pre>
  
  <p>they don't do anything. What's the point of assigning the fabric.Image object to the <code>bgnd</code> variable if this variable can't be accessed at a later time? Or am I using it incorrectly?</p>