The deltaHeight (which accounts for the vertical padding on the image) was being ignored, resulting in some large images crashing xhtml2pdf
Merge pull request #135 from tobynance/image-resizing

availHeight overwritten in _calcImageMaxSizes()