Updating GIF handler to te new API.