map window paint method