Support 2.3

Remove `Canvas.getWidth` and `Canvas.getHeight`