preserve aspect ratio for Nextjs images
<div
style={{
position: "relative",
width: "566px",
height: "425px",
}}
>
<Image
src={currCommit.image.url}
alt="Current Image"
layout={"fill"}
style={{objectFit: "cover"}}
/>
</div>