Resize image by height

to be able displaying images with fixed height,
this pull request allows resizing images when only height ('h') is set.