Replacing fillKept/strokeKept with cachedPaints, fixes #302