Added canvas resize