Fixing affectedLayers issue
Adding subtree paint dirty flag and notifier, fixes dirty region issue