fixing captioned photos, formatting