Fix auto-height issues for pages

Changed to calculate height based on real page width and image ratio
Merge pull request #33 from israelidanny/master

Fix auto-height issues for pages