%= render :partial => 'image', :locals => { :image => @image } %>
<% content_for :sidebar do -%>
<%= link_to "#{@image.people.title}'s images (#{@image.people.images.size})", galleries_path(:id => @image.people_id) -%>
<%= link_to "Download original", :action => 'download_original', :id => @image.id -%>
<%= link_to 'Destroy', gallery_path(@image), :confirm => 'Are you sure?', :method => :delete %>
<%= link_to 'Tag Image', :controller => :tag_images, :action => :show, :id => @image.id -%>
<%= new_image_link -%>
<% end -%>