MAJOR BUG FIX for wrong image heights

Serious bug not covered by functional test because image is a perfect
square! -_____-