Small edit to roitool allowing for image mask