mec.shape.img is handing over a scl property to g2.img command. Examples using this worked some months ago.
This is needed to perform a homogenious scaling. Using b and h properties for scaling does not work, as the real dimensions of the image are not known to the user.