import mlreportgen.dom.*;
doctype = 'html';
d = Document('mydoc',doctype);
p = Paragraph('This image ');
p.FontSize = '20';
im = Image('image_to_align.png');
im.Style = {VerticalAlign('text-bottom')};
t = Text(' is aligned with the bottom of the surrounding text.');
append(p,im);
append(p,t);
append(d,p);
close(d);
rptview('mydoc',doctype);