Move cacheThumbnail to Properties. Fix #252