Test file for #72: image captions not correctly removed
Implementation of fix for #72: remove dangling, formatted captions
Regression test for #72: ensure that graphic captions are removed even when formatted
Fix for regressions introduced by fix to #72