Deep Generative Models for Image Representation Learning