def img_element(fullpath)
sizespec = `identify '#{fullpath}'` =~ / JPEG (\d+)x(\d+) / ? 'width="' + $1 + '" height="' + $2 + '"' : ''
- return '<img src="' + fullpath + '" ' + sizespec + ' border="0"/>'
+ return '<img src="' + File.basename(fullpath) + '" ' + sizespec + ' border="0"/>'
end
def walk_source_dir