second attempt at fixing bug where already down-sampled mask was getting down-sampled a second time