The layout
option takes only a string as value, so you need to iterate over the set and create the tooltip like
$(function () {
$("[title]").each(function () {
$(this).tooltip({
tipClass: "tooltip",
layout: '<img src="img' + this.title + '" height="60" border="0" />'
});
})
});
Demo: Fiddle