Fix pdf document generation

by making sphinx aware about the images referenced in the latex preamble.
Merge pull request #767 from lmctv/sphinx_latex_images

Fix pdf document generation