<% if !banner.ad_images.can_display.blank? %>
<% banner.ad_images.can_display.desc(:created_at).each do |image| %>
<% if image.exchange_item == '1' %>
<% elsif image.video_snapshot.present? %>
<% elsif image.exchange_item == '2' %>
<% end %>
<% end %>
<% else %>
<%
width = banner.width
height = banner.height
width = 200 if width.blank?
height = 80 if height.blank?
%>
<% end %>