resize canvas to fit window