misc fixes: cmake_cxx_flags set appropriately, add a show_image fun, do not ignore some pixels adjacent to the center(top, left, and top-left)