os.unlink("pango.png") #delete the pango generated png
line=akshar+" "+str(bigbox[0]-1)+" "+str(2000-(bigbox[1]+deltay)-1)+" "+str(bigbox[2]+1)+" "+str(2000-(bigbox[3]-deltay)+1) # this is the line to be added to the box file
f.write(line+'\n')
#degrade code starts
strip=[deltax*.2,deltax*.4,deltax*.7]
for values in range(0,3):
distort2=inverted_image
for wai in range(0,deltay):
for ex in range(strip[values],strip[values]+1):
distort2.putpixel((ex,wai),255)
bigbox=(x,y,x+deltax,y+deltay)
#draw.rectangle(bigbox,None,10)
line=akshar+" "+str(bigbox[0]-1)+" "+str(2000-(bigbox[1]+deltay)-1)+" "+str(bigbox[2]+1)+" "+str(2000-(bigbox[3]-deltay)+1) # this is the line to be added to the box file