add paint class support