fixed image captions not being deletable. might have introduced other bugs but tests all pass - hairy :(