Add texture paint function.