add canvas resize