Improvements to canvas object for GlowScript Application Framework.