some tweaks to thumbnail cache