fix figure captions
Merge pull request #380 from owncloud/fix-fig-captions

Fix figure captions to prevent going them to the next page without captions