Update getFigure and saveImage examples to reflect current APIs' behaviors

The examples were out of date with respect to API names and
functionality.  Updated and verified they work.