add basic render loop for canvas drawing