resizing of map images in main page only done once