Converted idle task to run one thumbnail at a time, not blocking main thread