I need to get image original width for which I'm going to change `src` attribute, this way:

```
<input hidden type="file" id="loader" accept="image/*">

$('#m1new').click(function(){
    $('#loader').click();
});

$('#loader').change(function(){
var a = this.files[0];
var reader = new FileReader();
reader.onload = function(e) {
    var src = e.target.result;
    $('#imgt').attr("src", src);
    }
reader.readAsDataURL(a);
var a = $('#imgt').width();
console.log(a);
});

```

Console says - `undefined`.