bug fixes and options

I added an option to specify the color of the padding, it defaults to transparent/white.

There was also a bug with the ratios being integer division rather than float division that was throwing everything off, which is fixed now.