added conversion to images and PDF code example