$.fn.image = function(src,id,style, f){
    return this.each(function(){
        var i = new Image();
                i.src = src;
                i.setAttribute('style',style);
                i.setAttribute('id',id);  
                i.onload = f;
                this.appendChild(i);
    });
}

