change the way to get map image with 5 times retry