Image processing as a tool for phase transitions identification