title: Photoshop Image from html to layer(Photoshop extension)
body: <p>I want to create a layer and at the same time put an image from html to it.
  So far I did something like this:</p>
  
  <pre><code>var doc=document.getElementByID("img1");  //img1 is from html,it is an img tag
  var newLayerRef = app.activeDocument.artLayers.add(doc);
  </code></pre>
  
  <p>Could someone help me?</p>