adding pictures and generating pdfs