Adding constructor to the Sprite class.