code trying to build ROI and mask to get rect color intensity