you could use str_replace perhaps... you'd have to assign all of your content to a variable, then run it through the function and echo out what's left.
$code = str_replace("<img", "<img width='xxx' height='xxx' alt='xxx'", $code);
If you search for <img only, it'll simply insert the width/height/alt before the src (which I'm assuming is already present in the tag).
Hope that helps...