check if the image exist