converting documents to PNG for displaying on mobile devices