added code to use the PictureInfo object.