Fix handling of height parameter in TMH.

The height parameter was being mostly ignored by TMH.
Example invocations of height parameter that this changes:
*[[File:Hindesite - Lily - Focus Stacking (by).ogv|900x150px]]
*[[File:Hindesite - Lily - Focus Stacking (by).ogv|x100px]]

Change-Id: Id37d771c4d0693980eb672f1f03f4c1a7129973d
Merge "Fix handling of height parameter in TMH."