Fix for #1636: select thumbnail format from a list instead of hard-coding to png.
Template changes to toggle behavior based on whether a thumbnail is available.
Make travis show stack trace on any fatal error.
Merge pull request #1873 from bcipolli/1636

Fix for #1636: select thumbnail format from a list instead of hard-coding to png.