Fixed a bug in HTML export of landscape images