Using global object to access Paint namespace