<% action_url = create_or_assign_url(picture_to_assign, @options.to_json) %> <%= link_to( image_tag( picture_to_assign.url(size: preview_size(size), flatten: true) || "alchemy/missing-image.svg", alt: picture_to_assign.name ), action_url, remote: true, onclick: '$(self).attr("href", "#").off("click"); return false', method: @content.blank? ? 'post' : 'put', title: Alchemy.t(:assign_image), class: 'thumbnail_background' ) %>
<%= picture_to_assign.name %>