added overloaded method of painter to save implicit lookup