Remove obsolete getWidth() and getHeight()