Replace svg icons with data url and popups