#6 added support for displaying thumbnails from local cache