check for undefined images