You want to know if a image is loaded right?
$('#image').onload(function(){alert('Fires when image is loaded');});
or
if(document.getElementById('image').complete){alert('Image is loaded');}
Thats how you can check if a image is loaded or not.