check if the image is set