Transform animated gif to sprite for enhanced performance