Fix the image size so that there isn't a horizontal overflow.