Was trying to keep them consistent between the code and the canvas but realized I can just initialize them from canvas.width and canvas.height. Changed.