Fix gif image parsing

This allows gifs to be correctly parsed by image versioning.  Previously this would only work for png and jpg files.