Added method getWidth and getHeight to Sprite