Add thumbnail support and echo the_ functions