Sprite class constructor fix.