Graphic Design Issues

The pic to the right is inserted and set to align right. Note how the text wraps nicely — provided there is enough text to do so.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed lobortis felis at enim malesuada hendrerit. Cras ultricies nisi rhoncus sem euismod tincidunt in id lacus. Nulla faucibus pulvinar posuere. Phasellus varius ante ut enim consectetur, eu faucibus elit imperdiet. Nunc viverra lectus ut cursus lobortis. Mauris tincidunt tortor in leo cursus, nec sagittis ante gravida. Morbi lacus mauris, congue quis tincidunt id, sagittis quis sapien. Morbi mollis tortor porttitor sapien feugiat fermentum. Curabitur posuere varius sapien, non blandit justo commodo quis. Vestibulum sit amet elit nec magna facilisis sollicitudin id accumsan metus. Donec scelerisque felis non nisl suscipit, non gravida quam porttitor. Duis eu nunc ut est convallis sagittis vel quis nibh. Proin dapibus justo faucibus accumsan volutpat. Ut ut erat vel mi scelerisque finibus nec ut ipsum. Ut sit amet massa at ante aliquet ultrices. Pellentesque semper ligula eros, et finibus dui tristique at.
Note, however, that there is an excessively large gap between the bottom edge of the caption text (which itself is exceptionally large font and actually larger than the font of the body text).
Problems Arise

Problems arise when there is not enough text to wrap and is "interrupted" by a heading of any sort (experiments show it does not matter which heading level is used, the same problems occur.
The Problem at a Glance
As you can see, the heading here (Problem at a Glance) is forced down below the pic instead of wrapping nicely as it ought. Ironically, as you can see in this screenshot, it looks ever so nice whilst typing in the post and how it ought to look. As opposed to this screenshot showing how it does look. Enjoy some more enjoyable Lorem Ipsum to take up some space whilst I demonstrate the next issue. ... Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed lobortis felis at enim malesuada hendrerit. Cras ultricies nisi rhoncus sem euismod tincidunt in id lacus. Nulla faucibus pulvinar posuere. Phasellus varius ante ut enim consectetur, eu faucibus elit imperdiet. Nunc viverra lectus ut cursus lobortis. Mauris tincidunt tortor in leo cursus, nec sagittis ante gravida.
Is it Right Justify?

Ah, you may be asking yourself, perhaps it is the whole right-justify that is causing the issues? Well, let's test. As You can see, I have set the same pic with the same caption except using left justify. Once again, some highly enjoyable Lorem Ipsom for demonstration purposes... Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed lobortis felis at enim malesuada hendrerit. Cras ultricies nisi rhoncus sem euismod tincidunt in id lacus. Nulla faucibus pulvinar posuere. Phasellus varius ante ut enim consectetur, eu faucibus elit imperdiet. Nunc viverra lectus ut cursus lobortis. Mauris tincidunt tortor in leo cursus, nec sagittis ante gravida. Morbi lacus mauris, congue quis tincidunt id, sagittis quis sapien. Morbi mollis tortor porttitor sapien feugiat fermentum. Curabitur posuere varius sapien, non blandit justo commodo quis. Vestibulum sit amet elit nec magna facilisis sollicitudin id accumsan metus. Donec scelerisque felis non nisl suscipit, non gravida quam porttitor. Ut vel urna ac tortor commodo sodales at sit amet tellus. Praesent mauris est, imperdiet ut nunc id, lacinia convallis urna. Praesent tempor consequat malesuada. In odio risus, tincidunt ut semper ut, scelerisque vestibulum odio.
IS it Right Justify?

As you can see, from the above, the text once again wraps neatly around left-justified photos as well. But now, with this shorter paragraph and the next heading (Conclusions), it is clearly not a justification issue but once again leaves a gaping hole. (Should look: screenshot 3 v. does look Screenshot 4.)
Conclusions
It clearly does not matter which type of justification is used but rather the heading that refuses to wrap correctly around the pictures. In short, Headings + picture = great sorrows. Your help would be greatly appreciated as it has driven me nuts -- or to be excessively wordy to avoid weird gaps.