preamble redefines sphinxsgraphics to limit the size to max page width and height so no images is ever cropped
figure ht! reduce the times an image is not placed correctly within the document flow (but it is not perfect)
I add a full content table for the pdf.