check whether the image name contains space