jp2segments: minor improvements