Created Animation loop and canvas update handler