Fix for #39 that ensures a lower case file extension when checking for images.

Temporary work-around for #30 that assumes standard doc_type for search results. This means broken thumbnails for Google Docs and markers.