Responding to bug 469035, ensure values are integers
Clicking on the blend gradient throws an exception with an unexpected float, making the docker unusable. I fixed the error by ensuring the division returned an integer with int() instead of a float.