Why preview is showing a black box instead of an image? I just updated from El Capitan to macOS Sierra and I found a problem with preview. 

When I open certain PDF with images in it, sometimes the image appears black and sometimes I see it. For example: 


As you can see, the image is embedded in the PDF because you can see it in the thumbnail. Also, when I use the magnifier, I see the image. 



I can reproduce this with other PDF. 

I restarted my computer but it's still not working. I was told to repair the permissions under Disk Utility, but still not working. Do you have an idea to fix this?
I had a similar bit slightly different problem. I had whole pdf pages that were turned black when zoomed in and were correct when zoomed out, but the zoom made them impossible to read. I found this fix https://tidbits.com/2018/01/30/fixing-pdfs-whose-pages-render-as-black-rectangles-in-preview/ basically you have to calibrate your screen. i did it and it worked first time. odd.