Clicking "Save Animation" calls saveAnimation(), which is in capture1.js. It uses "scale hidden" and "scale displayed" only if preferenceScaleBar. Ditto for a static image when user specifies width in pixels.