Generative Models of Images and Neural Networks