Fix bug; compare image id of ids file with that of docker inspect correctly