<%= image_tag remote_image.url, width: remote_image.width, height: remote_image.height %> <% if caption = remote_image.try(:caption) %>
<%= caption %>
<% end %>