I want to loop all imgs(hundreds of images) and I want to get width of images.
But sometimes width and height return 0 or something wrong.

**Code**

```
$('img').each(function(){
    var image = jQuery(this);
    $(this).load(function(){
        var width = img.width(), height=img.height();

        //do something with width and height
    })

})

```

I tried with `jquery.load` and window.load function but it is also same.
Anybody who knows solution