Fixed media gallery thumbs.  #741

The logic that was using cached thumbnails in place of flash videos was erroneously being applied to images as well.  Only using it on video and clearing the cache should do the trick.
Merge branch 'SCHOLAR-3.x' of github.com:openscholar/openscholar into SCHOLAR-3.x