Fixed canvas resizing issue for changing screen size.