tweaked so figures don't appear on pages by themselves when there is text available that could round out the same page.