Decube Window fix, Sprite Animation code