use pdflatex for pdf creation, cleanup

remove unused images,
automatically convert image to the required format