You can use em values to size tables, infoboxes and some other stuff, but not for images. This is crucial as skins can differ their base font size (13, 14, 16 px) and images in em-sized infoboxes might then overflow.
This way one could use [[File:{{{image}}}|{{#expr: {{em}}*24 }}px]] where {{em}} would substitute as number of px in 1 em
See also T247680 for alternative solution