more stable page drawing