             if (restoreDisplayObject)
             {
                 UIComponent(parent).$removeChild(displayObject);
-                displayObject = oldDisplayObject;
+                setDisplayObject(oldDisplayObject);
             }
             return bitmapData;
         

        dispatchPropertyChangeEvent("displayObject", oldValue, value);

        // We need to apply the display object related properties.
        if (shareIndex <= 0)
        {
            displayObjectChanged = true;
            invalidateProperties();
        }
    }

    //--------------------------------------------------------------------------

     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public function validateSize():void
    {
        if (!invalidateSizeFlag)
            return;
