Restrict width of thumbnail images

So that extra-wide thumnails don't alter the standard width of the
sample editor.
Merge branch 'restrict-width-of-thumbnail-images' into master-based-on-gh-pages