fix the problem that body and face detetion cannot output mask images