How to auto adjust text+image widget to fit variable text content?

So text wrapped to 256px should look like so:

Image from Gyazo