problem to draw tile background

I am using my own logic to draw tile background by cropping of tile image as bellow->

for(int i=9;i>=0;i–)
{
for(int j=0;j<171;j++)
{

			if(arr1[i][j]>0)
			{
				backg[i][j]=CCSprite::create("tile background.png" );
				CCRect 	rect = CCRectMake((arr1[i][j]-1)*20, 0, 20,20);
				backg[i][j]->setTextureRect(rect);
				backg[i][j]->setPosition(ccp(j*20,-i*20));

			layer->addChild(backg[i][j],1);
			}
			
		
	}
}

then output become

when u measure that there is problem in crop so how i overcome that issue.


tile_buzz.png (192.2 KB)