refactor non plugin images and captions

Instead of doing if/elseif/else, first we set the style, and then change it if needed.
Partly needed to properly handle images with no width set in content. Too many
variables to sort through to properly assign width for feed at this time.
clarify comments