generate unique image filenames in image zip

When generating zip files, it looks to bomb out the moment there are
duplicate names. This change prefixes a counter to each name, thus
making it unique.