Testing broken image by checking directory level