added image comparison to functest.js