             if (thumbnailGroup)
             {
                 // null out the source and remove the thumbnail group
-                bitmapImage = thumbnailGroup.getElementAt(0) as BitmapImage;
-                if (bitmapImage)
-                    bitmapImage.source = null;
+                if (thumbnailBitmapImage)
+                    thumbnailBitmapImage.source = null;
                 if (this.contains(thumbnailGroup))
                     removeChild(thumbnailGroup);
                 invalidateSize();

        // if showing the thumbnail, just use the thumbnail's size
        if (thumbnailSource && thumbnailGroup)
        {
            intrinsicWidth = thumbnailGroup.getPreferredBoundsWidth();
            intrinsicHeight = thumbnailGroup.getPreferredBoundsHeight();
        }
        else
        {

     */
    private var thumbnailGroup:Group;
    
    /**
     *  @private
     *  BitmapImage for the thumbnail
     */
    private var thumbnailBitmapImage:BitmapImage;
    
    [Inspectable(Category="General")]
    
    /**
