Rolled the thumbnail generation out to a function
Merge branch 'master' of https://github.com/bsanders/softeng