thread safety on paint