more efficient layer rendering (chopped map bug fixed)