Updated Sprite class with constructor.