converted ratios to floats

ratios were integer division, which didn't work as desired. casting the numerators to floats cures this ailment
added padding color option into thumbnail tag
More thumbnail tweaks - don't prefix image's thumbnail subdirectory and comment the reasoning for the sub-directory, use hex strings for color and include in thumb name, and pep8 fixes.
Document optional thumbnail tag args
Minor fixes for building docs.