Issue #130, prevent caption from getting too close to page bottom.