 import mx.filters.IBitmapFilter;
 import mx.geom.Transform;
 import mx.geom.TransformOffsets;
-import mx.graphics.IStroke;
 import mx.managers.ILayoutManagerClient;
 import mx.utils.MatrixUtil;
 
 import spark.components.Group;
 import spark.components.supportClasses.InvalidatingSprite;
+import spark.core.DisplayObjectSharingMode;
 import spark.core.IGraphicElement;
 import spark.core.MaskType;
 

    {
        // If we don't share the display object, we will draw at 0,0
        // since the display object will be positioned at x,y
        if (sharedIndex == -1)
            return 0;
            
        // Otherwise we draw at x,y since the display object will be

    {
        // If we don't share the display object, we will draw at 0,0
        // since the display object will be positioned at x,y
        if (displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
            return 0;
            
        // Otherwise we draw at x,y since the display object will be
