mask edges, convert to flux (in dev)