'Paint' function fixed