Redraw canvas on window resize and ui-bar animation