Something like this. You need to “printf” that string before you use it. Inside of these commands it’s not parsed.
My answer is about dynamic parameters. Using basically the same width that the image already has… not sure why you would want that. But this is usable if you for instance define width via site or article params.