%- max_image_count = options[:maximum_amount_of_images] || options[:max_images] -%>
<%- pictures.each do |picture| -%>
<%= render_essence_editor(picture, {dragable: (pictures.size > 1)}.merge(options)) %>
<%- end -%>
<%- if max_image_count.blank? || pictures.length < max_image_count.to_i -%>
<%= render(
partial: 'alchemy/admin/elements/add_picture',
locals: {
element: element,
options: options,
dragable: (pictures.size > 1)
}
) %>
<%- end -%>
<%- if pictures.size > 1 -%>
<%- end -%>