added functions to map.js to change the map image