$.fn.image = function(src, f){ 
   return this.each(function(){ 
     var i = new Image(); 
     i.src = src; 
     i.onload = f; 
     this.appendChild(i);
   }); 
}
// example

/*$("#container").image("image.jpg", function(){
	$(this).fadeIn();

$(this).hover(function(){
//Do something
},function{
// revert do something on mouse out
});

});*/