make 3D check safer for p5.Image objects
make 3D check safer for p5.Image objects

processing/p5.js,processing/p5.js,limzykenneth/p5.js,limzykenneth/p5.js,dhowe/p5.js,mlarghydracept/p5.js,mlarghydracept/p5.js,dhowe/p5.js