Prevent integer overflow in gdImageWebpCtx