test canvas resize