precheck on while loop for images adjusted
Merge pull request #43 from Postmedia/bug_fixes

precheck on while loop for images adjusted