convert lambda coords to integers

Fixes an issue that causes black boxes sometimes with ImageMagick