To avoid the Thumbs.db file
Open My Computer or any folder and then click tools menu.
select Folder options.. and click view tab.
Check the Do not cache thumbnails check box in the advances setting section.
Press the OK button.
Note: Thumbs.db is a system file and it is generated automatically When you view the folder in Thumbnail or Filmstrip view.