code: def addBorder(self, width, color=None):
  		
  		width = int(width/config.DOWNSAMPLING)
  		if color==None:
  			color = self.color
  		layer = self.image.getActiveLayer().data
  		colorRGBA = color.get_0_255()
  		print('adding border'+str(colorRGBA)+str(width)+str(layer.shape))
  		layer[0:width,:,0] = colorRGBA[0]
  		layer[0:width,:,1] = colorRGBA[1]
  		layer[0:width,:,2] = colorRGBA[2]
  		layer[0:width,:,3] = colorRGBA[3]
  
  		layer[:,0:width,0] = colorRGBA[0]
  		layer[:,0:width,1] = colorRGBA[1]
  		layer[:,0:width,2] = colorRGBA[2]
  		layer[:,0:width,3] = colorRGBA[3]
  
  		layer[layer.shape[0]-width:layer.shape[0],:,0] = colorRGBA[0]
  		layer[layer.shape[0]-width:layer.shape[0],:,1] = colorRGBA[1]
  		layer[layer.shape[0]-width:layer.shape[0],:,2] = colorRGBA[2]
  		layer[layer.shape[0]-width:layer.shape[0],:,3] = colorRGBA[3]
  
  		layer[:,layer.shape[1]-width:layer.shape[1],0] = colorRGBA[0]
  		layer[:,layer.shape[1]-width:layer.shape[1],1] = colorRGBA[1]
  		layer[:,layer.shape[1]-width:layer.shape[1],2] = colorRGBA[2]
  		layer[:,layer.shape[1]-width:layer.shape[1],3] = colorRGBA[3]
docs: Add a border to the current :py:class:`Layer`.
  		
  		:param width: The width of the border.
  		:param color: The :py:class:`Color` of the border, current :py:class:`Color` is the default value.
  		:rtype: Nothing.