Development of image processing based system to study yarn structure during extension