Don't delete the index file!
Spawned image editing threads should sleep to prevent hitting memory cap.