Added new function 'setFrame(int)' to Sprite class