If layer is transparent eraser should delete the pixels, otherwise it should draw like a brush with the background color. We will need too add extra prop for the layer interface.