resize canvas to puzzle