Fix pdf document generation

by making sphinx aware about the images referenced in the latex preamble.