Added preliminary support for PDF processing.
Lighter PDF load, as now it uses always the same canvas (instead of one per page). It saves into an in-memory array the whole PDF as images, page per page, using toDataURL().
Same algorithm, but a little bit safer and faster, as now it uses jpen instead of png (png are larger files).