formats photo caption

Fixes #233