Also test whether the image exists.