title: Adding images to project under specific location for injected javascripts(GWT)
body: <p>Probably i do not know how to find the proper suport resource for this problem. </p>
  
  <p>Problem is that i am reciving error in browser console and of course image is not loaded. </p>
  
  <p><a href="https://i.stack.imgur.com/pzttp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pzttp.png" alt="enter image description here"></a>
  Situation: In form are injected .js script what uses defined images <code>ScriptInjector.fromString(textResource.getText()).setWindow(ScriptInjector.TOP_WINDOW).inject();
  </code>
  and in .js preview : </p>
  
  <pre><code> var slider = OpenLayers.Util.createAlphaImageDiv(id,
                     centered.add(-1, zoomsToEnd * this.zoomStopHeight), 
                     new OpenLayers.Size(20,9), 
                     imgLocation+"slider.png",
                     "absolute");
  </code></pre>
  
  <p>where imgLocation is </p>
  
  <pre><code>        var imgLocation = OpenLayers.Util.getImagesLocation();
  </code></pre>
  
  <p>And in that Util </p>
  
  <pre><code> /**
   * Property: ImgPath
   * {String} Default is ''.
   */
  OpenLayers.ImgPath = '';
  
  /** 
   * Function: getImagesLocation
   * 
   * Returns:
   * {String} The fully formatted image location string
   */
  OpenLayers.Util.getImagesLocation = function() {
      return OpenLayers.ImgPath || (OpenLayers._getScriptLocation() + "img/");
  };
  </code></pre>
  
  <p>in runtime function getImagesLocation  are returning "img/"</p>
  
  <p>For info this variable "OpenLayers.ImgPath" i can set in some native init method but dont know what img src location need. </p>
  
  <p>In project physically images are added. 
  <a href="https://i.stack.imgur.com/3qIWV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3qIWV.png" alt="enter image description here"></a></p>
  
  <p>But they are not added/loaded into webpage. </p>
  
  <p><a href="https://i.stack.imgur.com/OQUtR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OQUtR.png" alt="enter image description here"></a></p>
  
  <p>Main question how i can correctly add theese img for escaping theese errors ? 
  I have all Java 1.8, GWT, js posibilities. </p>
  
  <p>Thanks! </p>