Adding code for using PImage to set rendered image -- has speedup