Possibly the step where sparse images are converted to regular images may fail if the output image already exists. Do an `os.path.isfile(IMAGE)` check.