View Capture to image script works in R7.0 but doesnt in R8.0

Hi All,

Can anybody help troubleshoot this script?
It works flawlessly in R7.0 but produces blank images in R8.0
CaptureLayoutToImage.py (2.4 KB)
Thanks in advance,