Your img element should have a display of block

I am getting these Errors:
-Your img element should have a display of block.
-#image should have a max-width of 100%.
-#image should be centered within its parent.

this is my Css Code so far:

body {
  background-color: #e7efeb;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  text-align: center;
}

img{
display: block;
}


#image
{
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  }


p{
  text-align: center;
  font-size: 18px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

what Am I missing?

you need to share your html too