if ((node.visible) && (!node.isPartofClipMask))
{
DefineShape imageShape;
ScalingGrid scalingGrid = context.scalingGrid;
if (scalingGrid != null)
{
Rect grid = TypeHelper.rect(scalingGrid.scaleGridLeft, scalingGrid.scaleGridTop, scalingGrid.scaleGridRight, scalingGrid.scaleGridBottom);
imageShape = ImageHelper.create9SlicedShape(imageTag, grid, Double.NaN, Double.NaN);
PlaceObject po3 = placeObject(imageShape, context);