The correct solution, obviously, would be to use CSS styling.
Instead of inline styling ("img.style.align = [...]") though, I would
suggest that we use a class here; that way we could also add some
horizontal margin (to prevent nearby text from getting too close to the
image).
...
Actually, it seems that there are quite a few occurrences of ".align ="
in the core - I hope I'm not opening Pandora's box here...
(Nevertheless, I'm a sucker for standards compliance.)
-- F.