9๐
โ
I think you can solve your issue by adding a rect to the image before exporting it to pdf:
doc.setFillColor(204, 204,204,0);
doc.rect(10, 10, 150, 160, "F");
see updated fiddle:
Source:stackexchange.com