jQuery("img.avatar").bind("error", function() {
  this.src = "/images/default_avatar.png";
  this.onerror = "";
  return true;
});
jQuery("img.avatar").each(function() {
  this.src=this.src.substr(0,this.src.length-1);  
  this.alt=this.title;
});