The 'alignment' attribute for images has opposite
effects in the html writer & the latex writer. I
believe that the HTML writer is correct & the latex
writer is wrong. This patch reverses the effect of
align='top' and align='bottom' in the latex writer.
The following test file will demonstrate the problem,
when run with the latex & html writers, and an
appropriate image file.
test |image| test
.. |image| image:: image.png