def render_link_for(item)
      original_path = value_for(item, :original)
      thumbnail_path = value_for(item, :thumbnail)
      title = @options[:title] ? value_for(item, :title) : nil
      image = @template.image_tag(thumbnail_path, class: @options[:image_class])
      @template.link_to(image, original_path, rel: 'hermitage',
                                              class: @options[:link_class],
                                              title: title)
    end
def render_link_for(item)
      original_path = value_for(item, :original)
      thumbnail_path = value_for(item, :thumbnail)
      title = @options[:title] ? value_for(item, :title) : nil
      image = @template.image_tag(thumbnail_path, class: @options[:image_class])
      @template.link_to(image, original_path, rel: 'hermitage',
                                              class: @options[:link_class],
                                              title: title)
    end
Renders link to the specific image in a gallery