Reduce cyclomatic complexity of gif loader

No match.