rem: var preview = document.getElementById("imagepreview"); 
add: var saveAsButton = document.getElementById("imagesaveasbutton"); 
context: function onImageSelect(){  var outliner = document.getElementById("imageoutliner");  var preview = document.getElementById("imagepreview");  if (outliner.outlinerBoxObject.selection.count == 1)  {    var view = outliner.outlinerBoxObject.view;    if (!view.rowCount) return;    var clickedRow = outliner.outlinerBoxObject.selection.currentIndex;    var lineNum = view.getCellText(clickedRow, "image-number");    makePreview(imageList[lineNum-1]);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2b4f35ac9b5586a37abb36e9be0b4ca3c3c2f0be/pageInfo.js/clean/xpfe/browser/resources/content/pageInfo.js