<figure id="<%= dom_id(component) %>"
        class="FigureComponent <%= component.renderable.style %>"
        data-selectable="Selected"
        style="<%= "width: #{figure_component.width}px;" if figure_component.width.present? && !figure_component.width.zero? %>"
        data-commands="#<%= dom_id(component) %>_commands"
        data-reload="<%= scroll.component_path(component) %>">

  <% if figure_component.image.present? %>
    <% if figure_component.url.present? %>
      <%= link_to image_tag(figure_component.image.url(:large)), figure_component.url %>
    <% else %>
      <%= image_tag figure_component.image.url(:large) %>
    <% end %>
  <% else %>
    image missing
  <% end %>

  <% if figure_component.caption.present? %>
    <figcaption>
      <%= figure_component.caption %>
    </figcaption>
  <% end %>

</figure>

<figure id="<%= dom_id(component) %>"
        class="FigureComponent <%= component.renderable.style %>"
        data-selectable="Selected"
        data-commands="#<%= dom_id(component) %>_commands"
        data-reload="<%= scroll.component_path(component) %>">

  <% if figure_component.width.present? && !figure_component.width.zero? %>
    <% width = figure_component.width  %>
  <% else %>
    <% width = nil %>
  <% end %>

  <% if figure_component.image.present? %>
    <% if figure_component.url.present? %>
      <%= link_to image_tag(figure_component.image.url(:large), width: width), figure_component.url %>
    <% else %>
      <%= image_tag figure_component.image.url(:large), width: width %>
    <% end %>
  <% else %>
    image missing
  <% end %>

  <% if figure_component.caption.present? %>
    <figcaption>
      <%= figure_component.caption %>
    </figcaption>
  <% end %>

</figure>

Set image width instead of wrapper
Set image width instead of wrapper
