$.fn.image = function(src, f){
  return this.each(function(){
    $("<img />").appendTo(this).each(function(){
    this.src = src;
    this.onload = f;
		});
	});
}