Sped up merging significantly by checking if there are any ROIs first. Also added some nice ROI edge plotting.