Frame with object style around text and image
I am a genealogist creating a family book. I have a lot of records that I want to display in vignettes: a white box with inverted corners where a text with a summary of the record is displayed alongside the image. The text can be longer than the image, or vice versa. The longest of the two determines the height of the box. See the image for the desired result.
I have many of these records, and want the distance between the edge of the box and the text and image to be the same on all of these vignettes. I would like to use object styles to achieve this automatically. However, I have not been able to find out how to do this. I can create an object style for the text frame, to make that white and give it the corners I want, but it will not take into account the height of the image. I have tried anchoring the image to the text, but that has no effect.
Does anybody have any tips on how to achieve this? Or do I have to manually add a rectangle behind the text frame and image like I have done in the example?

