Adding the picture fill as a better response to the responsive images problem
Was way too complicated to deal with all this logic via javascript like that, would rather move towards responsive images.
Much better and more simple class to build out the active class and handle the flow