Creating multi-image masks