code: function(output) {
          var ret = "";
          if(output.url) {
              // If the image response output url is a string, then the image
              // data is not inline.
              ret = output.url;
          } else if(output.data) {
              // The image data is inline and base64 encoded, create a data
              // url for the image.  This will only work for small images,
              // due to browser url length limits.
              ret = "data:image/" + output.type + 
                    ";base64," + output.data;
          }
          return ret;
      }
docs: Method: getUrlOrImage
  Extract a url or image from the ArcXML image output.
  
  Parameters:
  output - {Object} The image.output property of the object returned from
  the ArcXML format read method.
  
  Returns:
  {String} A URL for an image (potentially with the data protocol).