Only destroy it after the image is created.