Image saving is now done in a spawned thread