added getWidth and getHeight for scripts