<% LayoutImage.editlink %>
render a link to image-edit calls image.editlink_macro, but only if the layout in path is the one this image belongs to

Sourcecode in LayoutImage/macros.js:
1:   function editlink_macro(param) {
2:      if (path.Layout == this.layout)
3:         Image.prototype.editlink_macro.apply(this, [param]);
4:      return;
5:   }