Well this is what I have figured out. Put a div down and put that to the width and height that you need for the image and then hide overflow and flex the image to the center. Then take a image and place it inside the div with 100% width so that it creates a cover effect.
Please let me know if there is an easier way