Vertical Layout Group and Content Size Fitter always makes constituent RawImage go to height 0

How do I get RawImage or Image to work within ContentSizeFitter? It seems to only work for text. I have tried many workarounds and came up with nothing except for doing all the sizing/layout calculations by hand in the code, which is very laborious.

I got it to work somehow, by using some complicated nesting of content size fitter and vertical layout group with or without control child size (even after simplifying to the simplest configuration possible). I believe the top level needs vertical layout group and control child size but not expand child size, and content size fitter with preferred everything. Then there needs to be an intermediary that has vertical layout group with NO control anything, and content size fitter with preferred size. Finally inside that, will lie the image or text, with no content size fitter