Added functionality for max-height and max-width.

I needed to have the ability to set the maximum height and width for an image in the PDF. This patch allows for that at a rudimentary level.  I would still like to add some checking when both max-height and max-width are added together to the same image.