Callback after image attr.src is done
<p>Here is my function</p>

<pre><code>var img = new Image();

$(img).load(function () {

    $(this).css('display','none');

    $(el).removeClass('loading').append(this);

    $(this).fadeIn();

}).error(function () {
    $(el).remove();
}).attr('src', srcImage);
</code></pre>

<p>I need to get the width of the loaded image or <code>srcImage</code> </p>

<p>I can do this with </p>

<pre><code>var w = $('.parent_element').find('img').css('width');
</code></pre>

<p>but it needs to be done after <code>srcImage</code> is completely loaded </p>
