add image onerror event for map image