xmp: implement conditional resize

Images are now resized if they exceed text width.
(this works inside \musicSFE, which is basically called by all other commands.