Properly handle image extensions in zip files

Fixes #169.