minor bug fixes and enhancements to DisplayObject and Sprite classes