Fixed thumbnails + Thumbnail cache

* Updated to search for thumbnail info in order to fix broken/hidden thumbnails.
* Added a cache for storing the md5/filename info for thumbnails in order to reduce search and load times.