The application now removes old thumbnail files and empty thumbnail folders when it quits.