title: Magnific-popup: how to get image url from <img src="...">?
body: <p>Is it possible to force magnific-popup to get image url from 'src' attribute of img tag? This way there would be no need to wrap img with a tags.
  I tried the code below, but it doesn't work. Returned error is 'undefined' url.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function(){
      $('div.gallery').magnificPopup({delegate: 'img'.attr('src') , type: 'image', gallery:{enabled:true}
      });
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>Anyways, is there any option to do with 'img' only, without 'a' tags?
  Thanks!</p>