changes to way we mask forground objects