Extended demo to add ROI shapes on first frame, and pad data with zeros to avoid ROIs that go over the edge