Moved 'canvas.updateDimensions' to 'Browser'

Moved 'canvas.updateDimensions' to 'Browser.updateCanvasDimensions' so
it can be used on any canvas