Change delay to 1 second
Update websocket to subscribe to pathTopic
Change canvas y, x positions. HTML5 canvas uses x,y

Add refreshCanvas function