I am in need of creating a unique Bootstrap 4 layout that involves an image staying fixed to the top after scrolling down until it reaches the bottom of the header. When the page is further scrolled down and the footer comes into view, the image should start scrolling again with the rest of the content. This sticky behavior is required only for large and extra-large Bootstrap 4 grids. I want the image to behave as if it had the "sticky-top" class from Bootstrap 4, but since browser support is lacking for this class, I am looking for a solution using CSS and jQuery. Is there a way to achieve this with jQuery?
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<header>The header sticks to the top</header>
<div>Breadcrumbs that scroll along with the page go here</div>
<div class="row">
<div class="col-12 col-lg-6">
<img src="image.jpg" class="img-fluid" alt="image">
</div>
<div class="col-12 col-lg-6">
<p>Lots of random text goes here</p>
</div>
</div>
<footer>Footer content goes here</footer>