trict';

tr.exportTo('tr.ui.e.img', function() {
  const THIS_DOC = document.currentScript.ownerDocument;

  /*
   * Displays an image snapshot.
   * @constructor
   */
  const ImageSnapshotView = tr.ui.b.define(
      'tr-ui-e-img-image-snapshot-view',
      tr.ui.analysis.ObjectSnapshotView);

  ImageSnapshotView.prototype = {
    __proto__: tr.ui.analysis.ObjectSnapshotView.prototype,

    decorate() {
      const node = tr.ui.b.instantiateTemplate(
          '#tr-ui-e-img-image-snapshot-view-template', 