moved var map_itag to global scope to allow dynamic resize