implement compare_with_gloden_image function