Re-writing config json after images are downloaded.