Performant animated GIF engine for iOS