Updated viewSize

Corrected viewSize from canvas.width to canvas.height