Rename the canvas class and remove setDpi().