Detection and Control of Tree-Ring Widths on Scanned Image