Added ability to generate images from view.