Added the ability to generate pictures.