Added test & patch for floating images page break

This patch fixes the floating image problem when they overflow at the bottom of the page.
It doesn't seem to break any other test.