Convert float to int.

The library call math.ceil() returns a float and so the calculated canvasHeight is a float which causes an error in a PIL method which expects integers,