Attributing Image Generative Models using Latent Fingerprints