Resize large images to fit content, including on window resize

This code deals with images that appear in the middle of text content
in their own paragraph.

It allows the image to be the width of the browser, not just the
width of the text.

It also resizes images that are too large for that to be reduced
in size. This resizing again happens upon window resize.
Correct image includes after WordPress import