added missing getImageData to PDFCanvas