workaround/hack/fix for cairo pattern gradient space exceeding 2^16 size limit