removed manual canvas resizing