This is for creating images and writing them to disk.