Convert float to int.

math.ceil retuns a float and so canvasHeight is a float which causes an error in PIL.
merge dev_4_4 -D org -I include -E exclude: PR 36 (Convert float to int.)