             isNaN(_scaleGridLeft) ||
             isNaN(_scaleGridRight))
         {
+             
+            
             matrix.identity();
             matrix.scale(fillScaleX, fillScaleY);
-            matrix.translate(drawX, drawY);
+            matrix.translate(roundedDrawX, roundedDrawY);
             g.beginBitmapFill(_bitmapData, matrix, repeatBitmap, smooth);
-            g.drawRect(drawX, drawY, unscaledWidth, unscaledHeight);
+            g.drawRect(roundedDrawX, roundedDrawY, unscaledWidth, unscaledHeight);
             g.endFill();
         }
         else

import flash.geom.Rectangle;
import flash.net.URLRequest;
import flash.system.LoaderContext;
import flash.utils.getDefinitionByName;

import spark.primitives.supportClasses.GraphicElement;


        var repeatBitmap:Boolean = false;
        var fillScaleX:Number = 1;
        var fillScaleY:Number = 1;
        var roundedDrawX:Number = Math.round(drawX);
        var roundedDrawY:Number = Math.round(drawY);
    
        switch(_resizeMode)
        {
