Improving image quality and stability of two-dimensional photonic crystal slab by changing surface structure of the photonic crystal