fixed canvas resizing