Fix a crash for files with dimensions non-multiple of two.

Always align the plane height to a factor 2.