# No Img Element
> Prevent usage of ` ` element to prevent layout shift.
### Why This Error Occurred
An ` ` element was used to display an image. Use either `` in conjunction with ` ` element, or use `next/image` that has better performance and automatic Image Optimization over ` `.
### Possible Ways to Fix It
Import and use the ` ` component:
```jsx
import Image from 'next/image'
function Home() {
return (
<>
>
)
}
export default Home
```
Use `` in conjunction with ` ` element:
```jsx
function Home() {
return (
<>
>
)
}
```
### Useful Links
- [Image Component and Image Optimization](https://nextjs.org/docs/basic-features/image-optimization)