Fix static analyzer warnings about leaking CGImageSources

We aren't leaking them, but the analyzer couldn't tell.