Merge pull request #5 from fonglh/scribing-qns

Refactor PNG conversion code, fix redirect after PDF upload