improve erasableMask: add alpha edge, fix position calculate