PDF Preview: Added the ability to create PNG snapshot of the current page to the PDF preview javascript code.
(see how it works at: http://stackoverflow.com/questions/11112321/how-to-save-canvas-as-png-image)