code: function (format) {
          return function (data) {
              var el = makeElement("img", [ "image-output" ]);
              el.src = "data:image/" + format + ";base64," + joinText(data).replace(/\n/g, "");
              return el;
          };
      }
docs: Outputs and output-renderers