added getWidth and getHeight