Fixing bug that caused pages to appear squashed and/or cropped for certain files