https://sketchupfordesign.com/tutorials/scripting/export-image-from-sketchup-with-ruby-snippet/
Export an Image from SketchUp with Ruby (Snippet)