Support for files with different height.

Comparing screenshots with different height was causing a crash, thus
images height is now compared and when necessary the smaller image is
padded.