check that image exists