Adjust canvas dimention