moved drawing map to separate buffer