implementation of image analysis on thermal shock