fixed thumpnail bug. thumnails are now auto-generated when no thumpnail is there yet.