canvas dimension modified