title: can multiple smartimages be added as different table in same dialog in cq5
body: <p>I am trying to add 5 smart images in 5 different tabs . the xtype is html5smartimage. </p>
  
  <p>I am rendering in jsp using the file reference .</p>
  
  <p>i.e.</p>
  
  <pre><code>&lt;img src="&lt;%=properties.get("fileReference1")%&gt; //different reference for different smartimages
  </code></pre>
  
  <p>I tried using Image component</p>
  
  <pre><code>Image image = new Image(resource, "firstimage");
  
  image.setSelector(".img");
  
  String text = properties.get("text", "TEXT NA");
  
  String path = currentStyle.get("path", "PATH NA");
  %&gt;
  &lt;h2&gt;&lt;%= path %&gt;&lt;/h2&gt;
  &lt;%= text %&gt;
  &lt;%
  image.draw(out);
  %&gt;
  </code></pre>
  
  <p>but it didnt work.</p>
  
  <p>The first approach worked but when i try to edit again the image disappears and the crop is disabled. can anyone let me know what to do?</p>
  
  <p>dialog.xml:
  
  
      
          
              
                  
                      
                      
                      
                      
                  
              
              
                  
                      
                      
                      
                      
                  
              
              
                  
                      
                      
                      
                      
                  
              
              
                  
                      
                      
                      
                      
                  
              
              
                  
                      
                      
                      
                      
                  
              
          
      
  </p>