{% if media.thumbnail %}
	<img src="{{ media.thumbnail.url }}" height="{{ media.thumb_height }}" width="{{ media.thumb_width }}" alt="{{ media.title }}" title="{{ media.title }}" />
{% else %}
	<p>No Thumbnail Available</p>
{% endif %}
<p class="caption">{{ media.caption|truncatewords:10 }}</p>
