title: Lazy load not adding link to background-image
body: <p>I have this code in html:</p>
  
  <pre><code>echo '&lt;div class="sponsors__item-bg-img lazy-load" data-original="'.$sponsor_item['image'].'" style="background-image: url();" src="https://static.questex.asia/template7/images/grey.gif" &gt;&lt;/div&gt;&lt;/a&gt;';
  </code></pre>
  
  <p>And the jquery.lazyload.js got this part:</p>
  
  <pre><code>$self.one("appear", function() {
              if (!this.loaded) {
                  if (settings.appear) {
                      var elements_left = elements.length;
                      settings.appear.call(self, elements_left, settings);
                  }
                  $("&lt;img /&gt;")
                      .bind("load", function() {
  
                          var original = $self.attr("data-" + settings.data_attribute);
                          $self.hide();
                          if ($self.is("img")) {
                              $self.attr("src", original);
                          } else {
                              $self.css("background-image", "url('" + original + "')");
                          }
                          $self[settings.effect](settings.effect_speed);
  
                          self.loaded = true;
  
                          /* Remove image from array so it is not looped next time. */
                          var temp = $.grep(elements, function(element) {
                              return !element.loaded;
                          });
                          elements = $(temp);
  
                          if (settings.load) {
                              var elements_left = elements.length;
                              settings.load.call(self, elements_left, settings);
                          }
                      })
                      .attr("src", $self.attr("data-" + settings.data_attribute));
              }
          });
  </code></pre>
  
  <p>However, the final result is the image is not loaded, because the url is not added by the js:</p>
  
  <pre><code>&lt;div class="sponsors__item-bg-img lazy-load" data-original="https://img.questex.asia/sites/default/files/styles/219x164/public/BizProLogo.jpg?itok=KLf9ojX0&amp;amp;timestamp=1527822985" style="background-image: url();" src="https://static.questex.asia/template7/images/grey.gif"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Anyone know how can i check what happened or how should i resolve the problem? Thanks.</p>