Fixed canvas resizing