ReactJS Image Gallery in a websocket fashion