check for empty image path