working rehashThumbnails