Pass in images and scratch space so that multiple copies can run concurrently.