Canvas export fix - closing path